Configure a fieldType in schema.xml as below:

  <fieldType name="text_shingle" class="solr.TextField"
positionIncrementGap="0">
    <analyzer>
      <tokenizer class="solr.StandardTokenizerFactory"/>
      ..
      ..
      *<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />*
      <filter class="solr.ShingleFilterFactory" minShingleSize="2"
maxShingleSize="3" outputUnigrams="false" />

    </analyzer>
  </fieldType>

Thanks,
Dikshant

On Mon, Oct 27, 2014 at 6:26 PM, O. Klein <kl...@octoweb.nl> wrote:

> Is there a way in Solr to filter out stopwords in shingles like ES does?
>
> http://www.elasticsearch.org/blog/searching-with-shingles/
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Stopwords-in-shingles-suggester-tp4166057.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to