It would be nice if you could configure some kind of filter to be processed
before the query string is passed to the parser. The QueryComponent class
seems a nice place for this; a filter could be run against the raw query and
ResponseBuilder's queryString value could be modified before the QParse
Unfortunately, Lucene's QueryParser pre-splits all incoming text on
whitespace, which means your search-time analyzer never has a chance
to detect the multi-word synonym. Ie, your analyzer is invoked twice.
Once with "exercise" and once with "dvds".
We need to fix that... but it's not exactly cl
Hi,
This happens because your tokenizer will generate seperate tokens for `exercise
dvds`, so the SynonymFilter will try to find declared synonyms for `exercise`
and `dvds` separately. It's behavior is documented [1] on the wiki.
[1]:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenF