apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.56k stars 1k forks source link

Support inequality operations in payload check queries [LUCENE-9659] #10698

Open asfimport opened 3 years ago

asfimport commented 3 years ago

This is a ticket broken out from https://issues.apache.org/jira/browse/SOLR-14787

The patch will extend the SpanPayloadCheck query to support inequality checks to see if the term and payload should match.  Currently, this query operator only supports equals as the payload check.  This ticket introduces gt,gte,lt,lte and eq operations to support testing if a payload is greater than/less than a specified reference payload value.  One such use case is to have a label on a document with a confidence level stored as a payload.  This patch will support searching for the term where a confidence level is above a given threshold.


Migrated from LUCENE-9659 by Kevin Watters (@kwatters), updated Feb 25 2021 Linked issues:

Pull requests: https://github.com/apache/lucene-solr/pull/2185

asfimport commented 3 years ago

ASF subversion and git services (migrated from JIRA)

Commit 890f570bf5f3f0501c47d8d6a74ef6e5b6e72e75 in lucene-solr's branch refs/heads/master from Kevin Watters https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=890f570

LUCENE-9659 inequality support in payload check query (#2185)

Changes from SOLR-14787 supporting inequalities in SpanPayloadCheckQuery

asfimport commented 3 years ago

ASF subversion and git services (migrated from JIRA)

Commit 1484c74ba70fb34874e15663cbc4e854f50ccf21 in lucene-solr's branch refs/heads/master from Gus Heck https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=1484c74

LUCENE-9659 fix unit test.

kwatters commented 2 years ago

I believe this was completed already...