Hey Everyone, I have a multivalued field which I am using as a payload field in a suggester.
// field declaration > <field name="keyword_meta_type" type="string" indexed="true" stored="true" > multiValued="true" /> // suggester component > <searchComponent name="suggest" class="solr.SuggestComponent"> > <lst name="suggester"> > <str name="name">insightSuggester</str> > <!-- AnalyzingInfixSuggester can provide unordered multi term > suggestions which means that matches could be partial and anywhere in the > phrase --> > <!-- BlendedInfixLookupFactory is an extension of > AnalyzingInfixSuggester. It boosts suggestions in which the hit is closer > to the start of suggestion --> > <str > name="lookupImpl">org.apache.solr.spelling.suggest.fst.BlendedInfixLookupFactory</str> > <!-- how suggestions are stored. DocumentDictionaryFactory takes > suggestions from a field of the index --> > <str name="dictionaryImpl">DocumentDictionaryFactory</str> > <!-- source field for suggestions --> > <str name="field">concept_name</str> > <!-- context field for suggestions. For example, suggest.cfq=4 in > query would limit suggestions to those documents where concepttype=4 --> > <str name="contextField">is_named_entity_str</str> > <str name="payloadField">keyword_meta_type</str> > <str name="payloadField">is_named_entity_str</str> > <str name="suggestAnalyzerFieldType">text_general</str> > <str name="buildOnStartup">false</str> > <str name="buildOnOptimize">false</str> > <str name="buildOnCommit ">false</str> > <str name="highlight">false</str> > </lst> > </searchComponent> The payload field is a multi valued field and it has two values. "keyword_meta_type":["DictionaryTerm", "NamedEntity"], However when I query the suggester, I only get back one value with the payload field. { "term":"maximal torus", "weight":9, "payload":"DictionaryTerm" } How can we make use of a multi valued field as a payload field in the suggester? Thanks Pratik