[ 
https://issues.apache.org/jira/browse/SOLR-9637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15573645#comment-15573645
 ] 

ridwan commented on SOLR-9637:
------------------------------

These are some of them:
{Suggester|https://cwiki.apache.org/confluence/display/solr/Suggester#Suggester-DictionaryImplementations}
{Serving autocomplete suggestion 
fast|https://www.norconex.com/serving-autocomplete-suggestions-fast/}

> Duplicate suggestion result in SolrCloud
> ----------------------------------------
>
>                 Key: SOLR-9637
>                 URL: https://issues.apache.org/jira/browse/SOLR-9637
>             Project: Solr
>          Issue Type: Bug
>          Components: Suggester
>    Affects Versions: 4.9.1
>         Environment: Windows 7 Enterprise, 64 bit OS
>            Reporter: ridwan
>              Labels: features, newbie
>
> Hi,
> I am currently trying solr.SuggestComponent with SolrCloud with 2 shards. 
> Here's my suggester component configuration:
> {code:xml}
>    <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="suggestAnalyzerFieldType">text_general</str>
>          <str name="field">name</str>
>       </lst>
>       <lst name="suggester">
>          <str name="name">basicSuggester</str>
>          <str name="lookupImpl">TSTLookupFactory</str>
>          <str name="storeDir">basic_tst_suggestions</str>
>          <str name="field">name</str>
>       </lst>
>    </searchComponent>
>    <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
>       <lst name="defaults">
>          <str name="suggest">true</str>
>          <str name="suggest.count">10</str>
>          <str name="suggest.dictionary">basicSuggester</str>
>          <str name="suggest.dictionary">fuzzySuggester</str>
>       </lst>
>       <arr name="components">
>          <str>suggest</str>
>       </arr>
>    </requestHandler>
> {code}
> When I try to search for suggestion using this way
> http://localhost:8983/solr/suggest?q=t&shards.qt=/suggest&suggest.build=true
> I get this result
> {code:xml}
> <response>
>    <lst name="responseHeader">
>       <int name="status">0</int>
>       <int name="QTime">200</int>
>    </lst>
>    <str name="command">build</str>
>    <lst name="suggest">
>       <lst name="basicSuggester">
>          <lst name="t">
>             <int name="numFound">4</int>
>             <arr name="suggestions">
>                <lst>
>                   <str name="term">tft</str>
>                   <long name="weight">1</long>
>                   <str name="payload" />
>                </lst>
>                <lst>
>                   <str name="term">test</str>
>                   <long name="weight">1</long>
>                   <str name="payload" />
>                </lst>
>                <lst>
>                   <str name="term">the</str>
>                   <long name="weight">1</long>
>                   <str name="payload" />
>                </lst>
>                <lst>
>                   <str name="term">test</str>
>                   <long name="weight">1</long>
>                   <str name="payload" />
>                </lst>
>             </arr>
>          </lst>
>       </lst>
>       <lst name="fuzzySuggester">
>          <lst name="t">
>             <int name="numFound">4</int>
>             <arr name="suggestions">
>                <lst>
>                   <str name="term">test</str>
>                   <long name="weight">1</long>
>                   <str name="payload" />
>                </lst>
>                <lst>
>                   <str name="term">tft</str>
>                   <long name="weight">1</long>
>                   <str name="payload" />
>                </lst>
>                <lst>
>                   <str name="term">the</str>
>                   <long name="weight">1</long>
>                   <str name="payload" />
>                </lst>
>                <lst>
>                   <str name="term">test</str>
>                   <long name="weight">1</long>
>                   <str name="payload" />
>                </lst>
>             </arr>
>          </lst>
>       </lst>
>    </lst>
> </response>
> {code}
> As can be seen above, the result *test* is duplicate. How to make this single 
> result? I've been trying to look for the workaround or fix in this Jira and 
> elsewhere in the internet, so far no luck. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to