[ https://issues.apache.org/jira/browse/SOLR-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15970386#comment-15970386 ]
Erik Hatcher commented on SOLR-1485: ------------------------------------ It's coming together, finally! Here's an example field and field type: {code} "add-field-type": { "name": "delimited_float_payloads", "class": "solr.TextField", "positionIncrementGap": "100", "indexAnalyzer": { "tokenizer": { "class": "solr.WhitespaceTokenizerFactory" }, "filters": [ { "class": "solr.DelimitedPayloadTokenFilterFactory", "encoder": "float" } ] }, "queryAnalyzer": { "tokenizer": { "class": "solr.WhitespaceTokenizerFactory" } } }, "add-field" : { "name":"delimited_float_payloads", "type":"delimited_float_payloads", "stored": "true", "multiValued": "true" } {code} Given that field definition, here's some example data indexed: {code} bin/post -c test -type text/csv -out yes -d $'id,delimited_float_payloads\n1,one|1.0 two|2.0 three|3.0\n2,weighted|50.0 weighted|100.0' {code} Here's a query that returns the computed payload function for the term "two" (which has a float value of 2.0): {code} http://localhost:9999/solr/test/select?q=*:*&fl=*,p:payload(delimited_float_payloads,two),score {code} > Payload scoring support > ----------------------- > > Key: SOLR-1485 > URL: https://issues.apache.org/jira/browse/SOLR-1485 > Project: Solr > Issue Type: New Feature > Components: search > Reporter: Erik Hatcher > Assignee: Erik Hatcher > Priority: Minor > Fix For: master (7.0) > > Attachments: PayloadTermQueryPlugin.java, SOLR-1485.patch > > > Solr currently has no support for Lucene's PayloadTermQuery, yet it has > support for indexing payloads. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org