Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentences in newly-added languages are not properly indexed #3162

Open
jiru opened this issue Feb 12, 2025 · 0 comments
Open

Sentences in newly-added languages are not properly indexed #3162

jiru opened this issue Feb 12, 2025 · 0 comments
Labels
bug Issue that describes a problem with a feature that doesn't work as expected.

Comments

@jiru
Copy link
Member

jiru commented Feb 12, 2025

To Reproduce
Steps to reproduce the behavior:

  1. Add a new language to Tatoeba using the procedure described in the wiki. The new language has to have a list of sentences given as parameter to add_new_language(). In addition, sentences in that list have to have translations in some other language.
  2. Try to search for sentences in the new language: it works
  3. Try to search for sentences having translations in the new language: no results returned

Expected behavior
Searching for sentences having translations in the newly-added language should work right away.

Additional notes
Only sentences added prior to the addition of the language on Tatoeba are affected. Sentences added after are not affected.
Some of the broken reindexation data may fortunately get repaired at some point if some action is performed on one of the directly or indirectly linked sentences. Actions such as adding/removing audio, changing tags, ownership, unapproved status, changing language etc. will trigger a reindexation of neighbor sentences (translations and translations of translations).

Workaround
A full reindexation of Tatoeba solves the problem for existing sentences, but any sentence of languages added later on will have the same problem.

Screenshots
https://tatoeba.org/en/sentences_lists/show/171793/und/und as of writing
Image

https://tatoeba.org/en/sentences/search?from=eng&query=B%C3%A9nin&to=guw as of writing
Image

https://tatoeba.org/en/sentences/search?from=eng&query=B%C3%A9nin&to= as of writing
Image

@jiru jiru added the bug Issue that describes a problem with a feature that doesn't work as expected. label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue that describes a problem with a feature that doesn't work as expected.
Projects
None yet
Development

No branches or pull requests

1 participant