Thanks Hoss
Apology for flooding the post.

But still i cant stop thinking about this.
i deleted my entire index and now i have 0 documents.

Now if i make a query with accrd i still get a suggestion of accord even
though there are no document returned since i deleted my entire index. i
hope it also clear the spell check index field.

Let me give some history about what i am doing.
i want my spellchecker to be indexed by make and model name
both fields are of type string.
i am copying both fields to a field called 
<copyField source="make" dest="mySpellText"/>
<copyField source="model" dest="mySpellText"/>

definition of field and field type is 

<field name="mySpellText" type="textSpell" indexed="true" stored="false"
multiValued="true" />
<fieldType name="textSpell" class="solr.TextField"
positionIncrementGap="100">
          <analyzer>
            <tokenizer class="solr.StandardTokenizerFactory"/>
            <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
            <filter class="solr.LowerCaseFilterFactory"/>
            <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
          </analyzer>
</fieldType>

in the request handler
<requestHandler name="global-search" class="solr.SearchHandler" >
        <lst name="defaults">
            <str name="defType">dismax</str>
            <str name="qf">text</str>
            <str name="pf"></str>
            <str name="bf"></str>
            <str name="mm"></str>
            <int name="ps">100</int>
        </lst>
        <arr name="last-components">
            <str>spellcheck</str>
        </arr>
    </requestHandler>

and here is my spell check component default decleration
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
        <str name="queryAnalyzerFieldType">textSpell</str>
        <lst name="spellchecker">
            <str name="name">default</str>
            <str name="field">mySpellText</str>
            <str name="buildOnOptimize">true</str>
            <str name="buildOnCommit">true</str>
            <str
name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
            <str name="spellcheckIndexDir">./mySpellcheckerDataIndex</str>
        </lst>
i have buildOnOPtmize and buildOnCommit as true so when i index new document
i want my dictionary to be created but how can i make sure i remove the
preivious indexed terms. 
Thanks
darniz




How can i reset my dictionary is there  away to do it.



hossman wrote:
> 
> 
> : Any update on this
> 
> Patience my friend ... 5 hours after you send an email isn't long enough 
> to wait before asking for "any update on this" -- it's just increasing the 
> volume of mail everyone gets and distracting people from actual 
> bugs/issues.
> 
> FWIW: this doesn't really seem directly related to the thread you
> initially started about Deleting the spell checker index -- what you're
> asking about now is rebuilding the spellchecker index...
> 
> : > I stop the sorl server removed the copy filed for model. now i only
> copy
> : > make to the spellText field and started solr server.
> : > i refreshed the dictiaonry by issuring the following command.
> : > spellcheck.build=true&spellcheck.dictionary=default
> : > So i hope it should rebuild by dictionary, bu the strange thing is
> that it
> : > still gives a suggestion for accrd.
> 
> that's because removing the copyField declaration doens't change anything
> about the values that have already been copied to the "spellText" field
> -- rebuilding your spellcheker index is just re-reading the same
> indexed values from that field.
> 
> : > How can i create the dictionary again by changing my schema and
> issuing a
> : > command 
> : > spellcheck.build=true&spellcheck.dictionary=default
> 
> it's just not possible.  a schema change like that doesn't magicly 
> undo all of the values that were already copied.
> 
> 
> 
> -Hoss
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Deleting-spelll-checker-index-tp27376823p27615354.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to