You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@comments.apache.org on 2017/12/14 11:04:08 UTC

siddharth commented on https://lucene.apache.org/solr/guide/6_6/suggester.html

Hello,
    siddharth has commented on https://lucene.apache.org/solr/guide/6_6/suggester.html. 
    You can find the comment here:
    https://lucene.apache.org/solr/guide/6_6/suggester.html#comment_7248
    Please note that if the comment contains a hyperlink, it must be approved
    before it is shown on the site.

    Below is the reply that was posted:
    ~~~~
    After Implementing on the Solr 5.3 exactly the same steps I am getting �01CStore Lookup build failed�01D and not able to retrieve any term  and i i removed 
StoreDir from the Fuzzy Suggester no response coming .
Here is configuration:
Schema.xml--
<field name="term"                type="text_general"    indexed="true"  stored="true"/>
   <field name="weight"              type="float"           indexed="true"  stored="true"/>

<types>
....
<fieldType name="suggestType" class="solr.TextField" positionIncrementGap="100">
    <analyzer>
        <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="[^a-zA-Z0-9]" replacement=" " />
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
    </analyzer>
</fieldType>

Solrconfig:

<searchComponent name="suggest" class="solr.SuggestComponent">
    <lst name="suggester">
        <str name="name">fuzzySuggester</str>
        <str name="lookupImpl">FuzzyLookupFactory</str>
        <!--<str name="storeDir">fuzzy_suggestions</str> -->
        <str name="dictionaryImpl">DocumentDictionaryFactory</str>
        <str name="field">term</str>
        <str name="weightField">weight</str>
        <str name="suggestAnalyzerFieldType">suggestType</str>
        <str name="buildOnStartup">false</str>
        <str name="buildOnCommit">false</str>
    </lst>
    <lst name="suggester">
        <str name="name">infixSuggester</str>
        <str name="lookupImpl">AnalyzingInfixLookupFactory</str>
        <!--<str name="indexPath">infix_suggestions</str>-->
        <str name="dictionaryImpl">DocumentDictionaryFactory</str>
        <str name="field">term</str>
        <str name="weightField">weight</str>
        <str name="suggestAnalyzerFieldType">suggestType</str>
        <str name="buildOnStartup">false</str>
        <str name="buildOnCommit">false</str>
    </lst>
</searchComponent>

  <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy" >
    <lst name="defaults">
        <str name="suggest">true</str>
        <str name="suggest.dictionary">infixSuggester</str>
        <str name="suggest.dictionary">fuzzySuggester</str>
       <!-- <str name="suggest.onlyMorePopular">true</str>-->
        <str name="suggest.count">10</str>
        <str name="suggest.collate">true</str>
    </lst>
    <arr name="components">
        <str>suggest</str>
    </arr>
</requestHandler>



Please help me solve this bug 

    ~~~~

    With regards,
    Apache Solr Reference Guide.

    You are receiving this email because you have subscribed to changes for the solr-refguide site.
    To stop receiving these emails, unsubscribe from the mailing list that is providing these notifications.