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

             Summary: Generate Suggester payload dynamically using a script
                 Key: SOLR-7051
                 URL: https://issues.apache.org/jira/browse/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.
{code}
<str name="payloadScript">"type=" + doc['typefield'] + ";color=" + 
doc['colorfield'] + ";sum=" + (doc['a_i']+doc['b_i'])</str>
{code}



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