apache / apache/lucene

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

Open
#10,698 3 comments 0 reactions 1 assignee Claimed by @dsmiley View on GitHub
legacy-jira-priority:Minor module:core/search type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

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](https://issues.apache.org/jira/browse/LUCENE-9659) by Kevin Watters (@kwatters), updated Feb 25 2021
Linked issues:
- [SOLR-14787](https://issues.apache.org/jira/browse/SOLR-14787)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.