[
https://issues.apache.org/jira/browse/LUCENE-8196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16391580#comment-16391580
]
Alan Woodward commented on LUCENE-8196:
---------------------------------------
{quote}Do we need {{IntervalIterator.score()}}?{quote}
Yes, terms and phrases return 1 instead than taking the overall width into
account. This is so that they score the same as TermQuery and PhraseQuery
{quote}Do we need {{advanceTo}}?{quote}
Unfortunately yes, or at least we need a way of resetting the iterator on each
new document. It might be possible to avoid passing the doc down and having a
return value though, I'll see what I can do.
{quote}I would like some form of AssertingIntervalsSource{quote}
This is a bit trickier, as it's not obvious where the wrapping would happen.
+1 to everything else, I'll work on a follow-up.
> Add IntervalQuery and IntervalsSource to expose minimum interval semantics
> across term fields
> ---------------------------------------------------------------------------------------------
>
> Key: LUCENE-8196
> URL: https://issues.apache.org/jira/browse/LUCENE-8196
> Project: Lucene - Core
> Issue Type: New Feature
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Major
> Attachments: LUCENE-8196.patch
>
>
> 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 LUCENE-2878 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]