[ https://issues.apache.org/jira/browse/SOLR-7086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545588#comment-14545588 ]
Marius Grama edited comment on SOLR-7086 at 5/15/15 3:13 PM: ------------------------------------------------------------- I take it so that the payload is an additional optional information that the client of the suggest search handler can make use of in order to enrich the suggestion. Mandatory is only the suggestion term. Moreover if the field denoted by the payload for a document is null, the suggestion term contained in the document still needs to be taken into account isn't it? was (Author: mariusneo): I take it so that the payload is an additional optional information that the client of the suggest search handler can make use of in order to enrich the suggestion. Mandatory is only the suggestion term. > 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: Trunk, 5.2 > > > 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org