[ https://issues.apache.org/jira/browse/LUCENE-9204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17351032#comment-17351032 ]
Alan Woodward commented on LUCENE-9204: --------------------------------------- I've opened two more prepatory PRs: * https://github.com/apache/lucene/pull/150 adds specialised two-phase disjunction handling for Spans and removes Spans related references in the core search classes. * https://github.com/apache/lucene/pull/151 adds a base class for testing Matches to the test framework so that we can move Spans related matches tests out of core > Do interval queries do everything span queries do? Should we maybe > eventually deprecate/remove span queries? There are some subtle differences, around scoring and handling of payloads. [~jpountz] suggested to me elsewhere that we should maybe provide wrapper classes that translate between the two. I would generally suggest that people should use intervals because they have more predictable behaviour (and we know that they behave 'correctly', up to a mathematical definition of correct), but I may be biased because I wrote them :) > Move span queries to the queries module > --------------------------------------- > > Key: LUCENE-9204 > URL: https://issues.apache.org/jira/browse/LUCENE-9204 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Alan Woodward > Assignee: Alan Woodward > Priority: Major > Time Spent: 0.5h > Remaining Estimate: 0h > > We have a slightly odd situation currently, with two parallel query > structures for building complex positional queries: the long-standing span > queries, in core; and interval queries, in the queries module. Given that > interval queries solve at least some of the problems we've had with Spans, I > think we should be pushing users more towards these implementations. It's > counter-intuitive to do that when Spans are in core though. I've opened this > issue to discuss moving the spans package as a whole to the queries module. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org