[ https://issues.apache.org/jira/browse/SOLR-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erik Hatcher updated SOLR-1485: ------------------------------- Attachment: PayloadTermQueryPlugin.java This class adds a QParserPlugin to support creating PayloadTermQuery's. This can be registered in solrconfig.xml like this: <queryParser name="payload" class="org.apache.solr.search.PayloadTermQueryPlugin"/> A custom Similarity is needed to score payloads (not provided with this issue). Once everything is lined up right (payload indexed, similarity with scorePayload implemented), a query like this can be used: http://localhost:8983/solr/select?q={!payload%20f=payloads%20func=avg}foo&debugQuery=true As can be seen with this explanation: 1.4450715 = (MATCH) fieldWeight(payloads:foo in 0), product of: 4.709331 = (MATCH) btq, product of: 0.70710677 = tf(phraseFreq=0.5) 6.66 = scorePayload(...) 0.30685282 = idf(payloads: foo=1) 1.0 = fieldNorm(field=payloads, doc=0) > PayloadTermQuery support > ------------------------ > > Key: SOLR-1485 > URL: https://issues.apache.org/jira/browse/SOLR-1485 > Project: Solr > Issue Type: New Feature > Components: search > Reporter: Erik Hatcher > Fix For: 1.4 > > Attachments: PayloadTermQueryPlugin.java > > > Solr currently has no support for Lucene's PayloadTermQuery, yet it has > support for indexing payloads. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.