Why can't we get multiple payloadFields from suggester?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Why can't we get multiple payloadFields from suggester?

Siddharth Gargate
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?
Reply | Threaded
Open this post in threaded view
|

Re: Why can't we get multiple payloadFields from suggester?

akhilendrajha
Did you find out a way to get multiple payloadFields ?



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html