Re: Solr 6.4 new SynonymGraphFilter help for multi-word synonyms

2017-02-03 Thread David Smiley
Solr _does_ have a query parser that doesn't suffer from this problem -- SimpleQParser chosen as the string "simple". https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-SimpleQueryParser In this case, see the "WHITESPACE" operator feature which can be toggled. Configure to

Re: Solr 6.4 new SynonymGraphFilter help for multi-word synonyms

2017-02-02 Thread Cliff Dickinson
Steve and Shawn, thanks for your replies/explanations! I eagerly await the completion of the Solr JIRA ticket referenced above in a future release. Many thanks for addressing this challenge that has had me banging my head against my desk off and on for the last couple years! Cliff On Thu, Feb

Re: Solr 6.4 new SynonymGraphFilter help for multi-word synonyms

2017-02-02 Thread Steve Rowe
Hi Cliff, The Solr query parsers (standard/“Lucene” and e/dismax anyway) have a problem that prevents SynonymGraphFilter from working: the text fed to your query analyzer is first split on whitespace. So e.g. a query containing “United States” will never match multi-word synonym “United

Re: Solr 6.4 new SynonymGraphFilter help for multi-word synonyms

2017-02-02 Thread Shawn Heisey
On 2/2/2017 7:36 AM, Cliff Dickinson wrote: > The SynonymGraphFilter API documentation contains the following statement > at the end: > > "To get fully correct positional queries when your synonym replacements are > multiple tokens, you should instead apply synonyms using this TokenFilter > at

Solr 6.4 new SynonymGraphFilter help for multi-word synonyms

2017-02-02 Thread Cliff Dickinson
I've been eagerly awaiting the release of the new SynonymGraphFilter in Solr 6.4. We have the need to support multi-word synonyms, which were always problematic with the old SynonymFilterFactory. I've upgraded to Solr 6.4 and replaced the old filter with the new one, but am not seeing the