lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Spellcheck
Date Wed, 07 Sep 2011 10:08:51 GMT
On Wed, Sep 7, 2011 at 1:52 PM, Danicela nutch <Danicela-nutch@mail.com>wrote:

> Hi,
>
>  I'm trying to get search suggestions like Google 'Did you mean ?' with
> indexed data with Solr from Nutch.
>
>  I added this to my schema.xml :
>
>  <fieldType name="textSpell" class="solr.TextField"
> positionIncrementGap="100" >
>  <analyzer>
>  <tokenizer class="solr.StandardTokenizerFactory"/>
>  <filter class="solr.LowerCaseFilterFactory"/>
>  <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
>  </analyzer>
>  </fieldType>
>
>  <field name="textSpell" type="text" stored="false" indexed="true"
> multiValued="true" />
>
>  <copyField source="*_text" dest="textSpell" />
>

Did you re-index after adding the textSpell field? It sounds like you added
the field after the index was already created therefore the building the
spellcheck index created an empty index.

-- 
Regards,
Shalin Shekhar Mangar.

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