Hi all,
        I have found to use UnicodeCollation. I need
*lucene-collation-2.9.1.jar.
*I am using solr 4.10.2. I have download lucene-collation-2.9.1.jar where I
have to store this or Is it already in-built in solr?
If it already in solr then why suggestions and collations are not coming?
Any help. Please?


On Mon, Feb 23, 2015 at 4:43 PM, Nitin Solanki <nitinml...@gmail.com> wrote:

> Hello all,
>               I am working on collations. Somewhere in Solr, I found that
> UnicodeCollation will do searching fast. But after applying
> CollationKeyFilterFactory in schema.xml, it stops the suggestions and
> collations both. Please check the configurations and help me.
>
> *Schema.xml:*
>
> <fieldType name="textSpell" class="solr.TextField"
> positionIncrementGap="100">
>        <analyzer type="index">
>            <tokenizer class="solr.StandardTokenizerFactory"/>
>            <filter class="solr.CollationKeyFilterFactory" language=""
> strength="primary"/>
>       </analyzer>
>       <analyzer type="query">
>           <tokenizer class="solr.StandardTokenizerFactory"/>
>           <filter class="solr.CollationKeyFilterFactory" language=""
> strength="primary"/>
>       </analyzer>
> </fieldType>
>
>
> Solrconfig.xml:
>
> <requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
>     <lst name="defaults">
>       <str name="df">gram_ci</str>
>       <!-- Solr will use suggestions from both the 'default' spellchecker
>            and from the 'wordbreak' spellchecker and combine them.
>            collations (re-written queries) can include a combination of
>            corrections from both spellcheckers -->
>       <str name="spellcheck.dictionary">default</str>
>       <str name="spellcheck">on</str>
>       <str name="spellcheck.extendedResults">true</str>
>       <str name="spellcheck.count">25</str>
>       <str name="spellcheck.onlyMorePopular">true</str>
>       <str name="spellcheck.maxResultsForSuggest">10</str>
>       <str name="spellcheck.alternativeTermCount">25</str>
>       <str name="spellcheck.collate">true</str>
>       <str name="spellcheck.maxCollations">100</str>
>       <str name="spellcheck.maxCollationTries">1000</str>
>       <str name="spellcheck.collateExtendedResults">true</str>
>     </lst>
>     <arr name="last-components">
>       <str>spellcheck</str>
>       <!--<str>suggest</str>-->
>       <!--<str>query</str>-->
>     </arr>
>   </requestHandler>
>

Reply via email to