You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Joel Bernstein (Jira)" <ji...@apache.org> on 2021/02/25 18:00:00 UTC

[jira] [Comment Edited] (SOLR-14787) Inequality support in Payload Check query parser

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

Joel Bernstein edited comment on SOLR-14787 at 2/25/21, 5:59 PM:
-----------------------------------------------------------------

Ok, this gives me a lot to think about. I'm interested in how this might be used graph query use cases and check back after I've given it some thought.


was (Author: joel.bernstein):
Ok, this gives me a lot to think about. I'm interesting in how this might be used graph query use cases and check back after I've given it some thought.

> Inequality support in Payload Check query parser
> ------------------------------------------------
>
>                 Key: SOLR-14787
>                 URL: https://issues.apache.org/jira/browse/SOLR-14787
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Kevin Watters
>            Assignee: Gus Heck
>            Priority: Major
>             Fix For: master (9.0)
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> The goal of this ticket/pull request is to support a richer set of matching and filtering based on term payloads.  This patch extends the PayloadCheckQueryParser to add a new local param for "op"
> The value of OP could be one of the following
>  * gt - greater than
>  * gte - greater than or equal
>  * lt - less than
>  * lte - less than or equal
> default value for "op" if not specified is to be the current behavior of equals.
> Additionally to the operation you can specify a threshold local parameter
> This will provide the ability to search for the term "cat" so long as the payload has a value of greater than 0.75.  
> One use case is to classify a document into various categories with an associated confidence or probability that the classification is correct.  That can be indexed into a delimited payload field.  The searches can find and match documents that were tagged with the "cat" category with a confidence of greater than 0.5.
> Example Document
> {code:java}
> { 
>   "id":"doc_1",
>   "classifications_payload":["cat|0.75 dog|2.0"]
> }
> {code}
> Example Syntax
> {code:java}
> {!payload_check f=classifications_payload payloads='1' op='gt' threshold='0.5'}cat  {code}
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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