Hi all,

In our setup we are using SOLR for regular search and suggestions.
For the auto complete function we are using SuggestComponent.

In our search index file it is possible to have titles with the same name.
This works as expected for search because every title has a different
subtitle and is therefore unique. However for the auto complete function we
would like to see single term instead of multiple terms (titles). 

For example:
in auto complete below we search for "top"
Result: 
Top Gear: 3 hits
Topsy and Tim: 1 hit
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">280</int>
</lst>
<str name="command">build</str>
<lst name="suggest">
<lst name="mySuggester">
<lst name="top">
<int name="numFound">4</int>
<arr name="suggestions">
<lst>
<str name="term">*Top Gear*</str>
<long name="weight">0</long>
<str name="payload"/>
</lst>
<lst>
<str name="term">*Top Gear*</str>
<long name="weight">0</long>
<str name="payload"/>
</lst>
<lst>
<str name="term">*Top Gear*</str>
<long name="weight">0</long>
<str name="payload"/>
</lst>
<lst>
<str name="term">*Topsy and Tim*</str>
<long name="weight">0</long>
<str name="payload"/>
</lst>


We tried Terms component before but it isn't possible to use any
tokenfilters to format the terms in this component.

How can we configure the SuggestComponent to show only 1 hit for every
unique term (Titles)?
The search index file should remain the same with duplicate title names.

Any ideas?

Thanks in advance,

Jori



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Suggester-in-SOLR-5-4-2-tp4259784.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to