On 10/27/2014 6:56 AM, O. Klein wrote:
> Is there a way in Solr to filter out stopwords in shingles like ES does?
> 
> http://www.elasticsearch.org/blog/searching-with-shingles/

If I read that correctly, ES isn't doing anything differently than Solr
does.  They use the same filters that Solr does.

The shingle filter doesn't have stopword support, they simply use the
stopword filter (with enablePositionIncrements turned off) followed by
the shingle filter.  This is easy to do in schema.xml for Solr.

The javadoc here shows the solr configuration for the StopFilter, with
the default setting for enablePositionIncrements of "true":

https://lucene.apache.org/core/4_10_0/analyzers-common/org/apache/lucene/analysis/core/StopFilterFactory.html

Thanks,
Shawn

Reply via email to