Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7086

Suggester dictionary empty if payload field does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 4.10.3
    • 5.2, 6.0
    • Suggester
    • None

    Description

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

         <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>
      

      It should use an empty payload instead.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              janhoy Jan H√łydahl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: