You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erik Hatcher (JIRA)" <ji...@apache.org> on 2014/08/19 21:01:19 UTC

[jira] [Commented] (SOLR-1485) PayloadTermQuery support

    [ https://issues.apache.org/jira/browse/SOLR-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14102658#comment-14102658 ] 

Erik Hatcher commented on SOLR-1485:
------------------------------------

Anyone have thoughts on how best to implement the scorePayload() method in Solr?   Should Solr have its own DefaultSimilarity subclass that implements it?  

It'd be great to at least get support for PayloadTermQuery in, such that it supports DelimitedPayloadTokenFilter created payloads.   I suppose that means that scorePayload() will need to support at least float and integer decoding, based on introspecting the field type definition.   What about "identity" encoding (throw an unsupported exception?)?    Using a custom encoder would require a custom scorePayload(), and by default throw an exception on that too I presume.

And what about other Similarity implementations and if/how to support those? 

I'm seeing that it's tough to put this into Solr in a general purpose way, but maybe we can at least get out of the box support for integer and float using the default similarity.

> 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
>            Assignee: Erik Hatcher
>             Fix For: 5.0
>
>         Attachments: PayloadTermQueryPlugin.java
>
>
> Solr currently has no support for Lucene's PayloadTermQuery, yet it has support for indexing payloads. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org