lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dikshant Shahi <contacts...@gmail.com>
Subject Re: Stopwords in shingles suggester
Date Mon, 27 Oct 2014 13:16:10 GMT
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 <klein@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message