Thank you very much for this awesome config. I'm working on it as we speak.

2011/8/17 Herman Kiefus <herm...@angieslist.com>

> If you only get one, best, collation then there is no point to my question;
> however, since you asked...
>
> The relevant sections:
>
> Solrconfig.xml -
>
> <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
>
> <str name="queryAnalyzerFieldType">textDictionary</str>
>
> <lst name="spellchecker">
>        <str name="name">default</str>
>        <str name="classname">solr.IndexBasedSpellChecker</str>
>        <str name="field">TermsDictionary</str>
>        <str name="spellcheckIndexDir">./spellchecker</str>
>        <float name="thresholdTokenFrequency">0.0</float>
>        <str name="comparatorClass">score</str>
> </lst>
>
> Schema.xml -
>
> <fieldType name="textCorrectlySpelled" class="solr.TextField"
> positionIncrementGap="100" omitNorms="true">
>        <analyzer type="index">
>                <tokenizer class="solr.StandardTokenizerFactory"/>
>                <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="stopwords.txt"/>
>                <filter class="solr.KeepWordFilterFactory"
> words="correctly_spelled_terms.txt" ignoreCase="true"/>
>                <filter class="solr.LowerCaseFilterFactory"/>
>                <filter class="solr.StandardFilterFactory"/>
>        </analyzer>
>        <analyzer type="query">
>                <tokenizer class="solr.StandardTokenizerFactory"/>
>                <filter class="solr.SynonymFilterFactory"
> synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
>                <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="stopwords.txt"/>
>                <filter class="solr.LowerCaseFilterFactory"/>
>                <filter class="solr.StandardFilterFactory"/>
>        </analyzer>
> </fieldType>
>
> <fieldType name="textDictionary" class="solr.TextField"
> positionIncrementGap="100" omitNorms="true">
>        <!-- No index-time analysis as that is done by the fields that
> source fields of this type-->
>        <analyzer type="query">
>                <tokenizer class="solr.StandardTokenizerFactory"/>
>                <filter class="solr.SynonymFilterFactory"
> synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
>                <filter class="solr.StopFilterFactory" ignoreCase="true"
> words="stopwords.txt"/>
>                <filter class="solr.LowerCaseFilterFactory"/>
>                <filter class="solr.StandardFilterFactory"/>
>        </analyzer>
> </fieldType>
>
> <field name="CorrectlySpelledTerms" type="textCorrectlySpelled"
> indexed="false" stored="false" multiValued="true"/>
> <field name="TermsDictionary" type="textDictionary" indexed="true"
> stored="false" multiValued="true"/>
>
> <!-- Those fields that will have misspellings stripped before they are put
> into the dictionary -->
> <copyField source="BusinessDescription" dest="CorrectlySpelledTerms"/>
> <copyField source="Services" dest="CorrectlySpelledTerms"/>
> <copyField source="ServiceArea" dest="CorrectlySpelledTerms"/>
> <copyField source="City" dest="CorrectlySpelledTerms"/>
> <copyField source="CategoryName" dest="CorrectlySpelledTerms"/>
> <copyField source="MedicalSpecialtyDescription"
> dest="CorrectlySpelledTerms"/>
> <copyField source="ReportComment" dest="CorrectlySpelledTerms"/>
> <copyField source="ReportDescription" dest="CorrectlySpelledTerms"/>
> <copyField source="ReportMediaDescription" dest="CorrectlySpelledTerms"/>
> <copyField source="AdditionalReportInformationAnswer"
> dest="CorrectlySpelledTerms"/>
>
> <!-- The dictionary source field -->
> <!-- Those fields that are not spell checked but rather appear in the
> dictionary as is -->
> <copyField source="Name" dest="TermsDictionary"/>
> <copyField source="Contact" dest="TermsDictionary"/>
> <!-- Plus the rmainder of those fields that are spellchecked -->
> <copyField source ="CorrectlySpelledTerms" dest="TermsDictionary"/>
>
> -----Original Message-----
> From: Alexei Martchenko [mailto:ale...@superdownloads.com.br]
> Sent: Wednesday, August 17, 2011 5:34 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr spellcheck and multiple collations
>
> Can u show us how is your schema and config?
>
> I believe that's how collation is: the best match, only one.
>
> 2011/8/17 Herman Kiefus <herm...@angieslist.com>
>
> > After a bit of work, we have 'spellchecking' up and going and we are
> > happy with the suggestions.  I have not; however, ever been able to
> > generate more than one collation query.  Is there something simple that I
> have overlooked?
> >
>
>
>
> --
>
> *Alexei Martchenko* | *CEO* | Superdownloads ale...@superdownloads.com.br|
> ale...@martchenko.com.br | (11)
> 5083.1018/5080.3535/5080.3533
>



-- 

*Alexei Martchenko* | *CEO* | Superdownloads
ale...@superdownloads.com.br | ale...@martchenko.com.br | (11)
5083.1018/5080.3535/5080.3533

Reply via email to