lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <j...@apache.org>
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
                 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


Mime
View raw message