lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] [Created] (SOLR-7051) Generate Suggester payload dynamically using a script
Date Wed, 28 Jan 2015 12:40:34 GMT
Jan Høydahl created SOLR-7051:

             Summary: Generate Suggester payload dynamically using a script
                 Key: SOLR-7051
             Project: Solr
          Issue Type: New Feature
          Components: SearchComponents - other
            Reporter: Jan Høydahl

Solr Suggester support a payload that can be returned as part of the response. Currently {{DocumentDictionaryFactory}}
will fetch the payload from one stored field on the document being processed.

It is, however, quite common that the client needs a payload with information from several
document fields and possibly some calculations etc.

Investigate whether we could support a scriptable payload, e.g.
<str name="payloadScript">"type=" + doc['typefield'] + ";color=" + doc['colorfield']
+ ";sum=" + (doc['a_i']+doc['b_i'])</str>

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message