Blomstra Search, an elasticsearch fulltext search extension
Do I understand correctly that this search function does not search in discussion titles?
luceos okay but i have some issues. for example i have a discussion with title: "Arbeitsstunden, Ferientage, Feiertage und Ferienbonus definieren".
Now when I search for "Arbeitsstu", the discussion is suggested as a result. But as soon as I search for "Arbeitsstun" (one letter more at the end), no result is displayed.
What could be the reason for this?
The language is set correctly (German) and I have already deleted the index "flarum_forum" completely and created it again.
It seems that it does not find results when my search string is longer than 10 characters.
maisen20 I don't see this issue in production: https://forum.mutluanneleriz.com/?q=hastane%20%C3%A7antas%C4%B1n%C4%B1%20haz%C4%B1rlamaya%20eksik%20hep%20%C3%A7%C4%B1k%C4%B1yor%20%C3%A7%C3%BCnk%C3%BC%20birde
Can you try identifying what is sent through the Flarum api?
- Edited
When i check the console i can see the request url is:
/api/blomstra/search/discussions?filter[q]=filtervorlagen&page[limit]=3&include=mostRelevantPost
I can't see errors in the logs and the result is:
{"links":{"first":"https:\/\/community.domain.com\/api\/blomstra\/search\/discussions?filter%5Bq%5D=filtervorlagen\u0026page%5Blimit%5D=20\u0026include=mostRelevantPost\u0026type=discussions"},"data":[]}
To inform everyone:
I figured out what the reason for the limitation to 10 characters is.
In the file "/vendor/blomstra/search/src/Commands/BuildCommand.php" there are the values for 'index.max_ngram_diff' and 'max_gram' which tell ES's tokenizer how long the token can be. These values are set to 10. I assume that this is the case for all of you.
This means words containing more than 10 characters will not be tokenized and therefore these words/posts will not be found.
luceos Thank you. Worked
luceos but not understand. What is?
Elastic Endpoint
Username
Password
Index
and not have Analyzer language : Azerbaijan
and how to fixed size searchbox?
- Edited
Mirzaagha Elastic Endpoint
Username
Password
Index
these are settings your elasticsearch instance has
Mirzaagha Azerbaijan
I don't know, your elastic instance probably needs to be configured with it. We currently have no flexible way to set this as a value, but you could modify the setting inside your database to the given analyzer, it might work. Otherwise a PR with the changes needed to make the field flexible would be appreciated.