Jan Høydahl created SOLR-7086:
---------------------------------

             Summary: Suggester dictionary empty if payload field does not exist
                 Key: SOLR-7086
                 URL: https://issues.apache.org/jira/browse/SOLR-7086
             Project: Solr
          Issue Type: Bug
          Components: Suggester
    Affects Versions: 4.10.3
            Reporter: Jan Høydahl
             Fix For: 5.1


Setting up a suggester for authors using {{DocumentDictionaryFactory}} and 
{{payloadField}}. If no documents have data in the payload field, the 
dictionary will be empty.

{code:xml}
   <lst name="suggester">
      <str name="name">authors</str>
      <str name="lookupImpl">BlendedInfixLookupFactory</str>     
      <str name="suggestAnalyzerFieldType">text_folded</str>
      <str name="dictionaryImpl">DocumentDictionaryFactory</str>     
      <str name="field">authors_s</str>
      <str name="payloadField">not_exist_s</str>
   </lst>
{code}

It should use an empty payload instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to