lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siddharth Gargate <>
Subject Why can't we get multiple payloadFields from suggester?
Date Sat, 27 Aug 2016 01:05:13 GMT
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>

  <requestHandler name="/suggest" class="solr.SearchHandler"
                  startup="lazy" >
    <lst name="defaults">
      <str name="suggest">true</str>
      <str name="suggest.count">10</str>
    <arr name="components">

Also in case the payload field is multivalued, I get only one value as

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?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message