You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Siddharth Gargate <si...@gmail.com> on 2016/08/27 01:05:13 UTC
Why can't we get multiple payloadFields from suggester?
I need multiple payload fields from the suggester. I tried following but
didn't work
<searchComponent name="suggest" class="solr.SuggestComponent">
<lst name="suggester">
<str name="name">mySuggester</str>
<str name="lookupImpl">BlendedInfixLookupFactory</str>
<str name="blenderType">position_linear</str>
<str name="dictionaryImpl">DocumentDictionaryFactory</str>
<str name="field">longDesc_txt</str>
<!--str name="weightField">price</str-->
<str name="suggestAnalyzerFieldType">text_en_splitting</str>
<str name="buildOnStartup">false</str>
<str name="payloadField">desc_txt</str>
<str name="payloadField">code</str>
<str name="payloadField">type</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>
</lst>
<arr name="components">
<str>suggest</str>
</arr>
</requestHandler>
Also in case the payload field is multivalued, I get only one value as
payload.
Only option I see is to concatenate multiple field values and post process
it. Any better solution? Is there any plan to implement this feature?
Re: Why can't we get multiple payloadFields from suggester?
Posted by akhilendrajha <ak...@gmail.com>.
Did you find out a way to get multiple payloadFields ?
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html