I am developing a set of synonyms where you can find several verbose expressions, for example:
black berry => blackberry
At the analysis stage and using the /admin/analysis.jsp tools, I see that the results are correct.
A query such as "quiero una black berry" returns the following sequence:
. org.apache.solr.analysis.StandardTokenizerFactory {luceneMatchVersion = LUCENE_36}:
position 1 2 3 4 term text quiero una black berry startOffset 0 7 11 17 endOffset 6 10 16 22 type <ALPHANUM> <ALPHANUM> <ALPHANUM> <ALPHANUM>
org.apache.solr.analysis.SynonymFilterFactory {synonyms = lang / synonyms_es.txt, expand = false, ignoreCase = true, luceneMatchVersion = LUCENE_36}:
position 1 2 3 term text quiero una blackberry type <ALPHANUM> <ALPHANUM> SYNONYM startOffset 0 7 11 endOffset 6 10 22
However, if I try this sentence in a "real" request, the request handler (evolution of the edismax handler), the tokens "black" and "berry" were not replaced by "blackberry".
I saw here that you can solve this situation by changing the FieldQParser plugin.
In any case, since such a post was made almost 3 years ago, I would like to know if there is a way to solve this problem inside Solr, avoiding the need to extend some plugin.
Thanks.
asuka source share