Change Analyzer For Enhanced Search [Deleted]

digitalpoint

Well-known member
digitalpoint submitted a new resource:

Change Analyzer For Enhanced Search (version 1.0) - Make XenForo's Enhanced Search *not* treat punctuation as part of a word.

By default, punctuation not followed by whitespace is treated as an indexable character. As an example, a search of "digitalpoint" would not return results with "digitalpoint.com" in it because "digitalpoint.com" is treated as an individual word, rather than two words (digitalpoint and com).

This setup is similar to XenForo's "Stemming analyzer" (it still does word stemming with the snowball token filter). The main difference is just how it treats punctuation "within" words.

1. Add this...

Read more about this resource...
 
Hi

on my Server, the mysql search length minimum is set to "4" and I can not change this. Would this addon help me to find postings if I search i.e. for "28" or "28-75" or "50/1.4"?
 
Hi

on my Server, the mysql search length minimum is set to "4" and I can not change this. Would this addon help me to find postings if I search i.e. for "28" or "28-75" or "50/1.4"?


The Enhanced search does not use mysql so is not restricted by that setting at all.
 
What I did is:
1. Add this to your elasticsearch.yml file:
index.analysis.analyzer.default.type: custom
index.analysis.analyzer.default.tokenizer: pattern
index.analysis.analyzer.default.filter: ["standard", "lowercase", "stop", "snowball"]

2. rcelasticsearch restart

3. Delete Index here: /admin.php?elasticsearch/

4. Done :)

Hope it's correct.
 
Top Bottom