Skip to content

Add IntervalQuery and IntervalsSource to expose minimum interval semantics across term fields [LUCENE-8196] #9243

@asfimport

Description

@asfimport

This ticket proposes an alternative implementation of the SpanQuery family that uses minimum-interval semantics from http://vigna.di.unimi.it/ftp/papers/EfficientAlgorithmsMinimalIntervalSemantics.pdf to implement positional queries across term-based fields.  Rather than using TermQueries to construct the interval operators, as in #3952 or the current Spans implementation, we instead use a new IntervalsSource object, which will produce IntervalIterators over a particular segment and field.  These are constructed using various static helper methods, and can then be passed to a new IntervalQuery which will return documents that contain one or more intervals so defined.


Migrated from LUCENE-8196 by Alan Woodward (@romseygeek), resolved Apr 03 2018
Attachments: LUCENE-8196.patch (versions: 5), LUCENE-8196-debug.patch
Linked issues:

Pull requests: apache/lucene-solr#334

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions