Question about the Elasticsearch

RoyLin

New member
Has anyone tried the search function add on: ElasticSearh? We have a problem regarding the built in search function in Xenforo. The problem occurs when we add a dot ( ".") within a word, it would mess up the search function and said the search was too short, too long or too common. We are hoping that ElasticSearch would fix this issue.

Or, has any dealt with this situation before? any pro tips?

Please help!!
 

Attachments

  • image_2024_08_07T22_21_42_768Z.webp
    image_2024_08_07T22_21_42_768Z.webp
    23.5 KB · Views: 14
Thank you for the input. So ElasticSearch seems like a way to go to resolve the "." issue.

However, I am wondering is there any other way to allow the built in search function in Xenforo to search "."? What do I need to tweak in order to achieve that?
 
I am looking at something similar as topic author but with symbol "-" like e-mail or email. If you are not using ES and try to search e-mail it will of course result with error "The following words were not included in your search because they are too short, too long, or too common: e"
If i try to search here for both e-mail and email words - results will be different.
The question - is it possible to have the same search results for those both words?

I looked at elasticsearch documentation and there is pattern replace. But that would be proper approach to this?
Something like this
Code:
"filter": {
"myfilter": {
"type": "pattern_replace",
"pattern": "-",
"replacement": ""
}
 
Still interested in answer. If before given elasticsearch configuration will result with the same search results if given keyword will be "email" or "e-mail"?
 
Back
Top Bottom