You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2015/01/28 13:40:34 UTC
[jira] [Created] (SOLR-7051) Generate Suggester payload dynamically
using a script
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org