[
https://issues.apache.org/jira/browse/LUCENE-10223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17439508#comment-17439508
]
Alan Woodward commented on LUCENE-10223:
----------------------------------------
It's because it returns the position of the inner match, but the offsets of the
outer. And so if you're re-analyzing and retrieving offsets by looking at the
positions, you get the 'right' thing. It's not obvious to me what the correct
response is here, but thinking about it the current behaviour is kind of the
worst of both worlds, and perhaps we should change it so that you get offsets
of the inner match as standard, and then the outer match is returned as part of
the sub matches.
> Add interval function support to standard query parser
> ------------------------------------------------------
>
> Key: LUCENE-10223
> URL: https://issues.apache.org/jira/browse/LUCENE-10223
> Project: Lucene - Core
> Issue Type: New Feature
> Affects Versions: 9.1
> Reporter: Dawid Weiss
> Assignee: Dawid Weiss
> Priority: Minor
>
> This issue adds syntactic support for expressing interval sub-clauses within
> queries that StandardQueryParser can parse.
>
> * [ ] add documentation on what the syntax is to the issue and to the code.
> * [ ] update migration guide (may not be compatible)
> * [ ] mention min-should-match operator support for boolean queries.
> * [ ] changes entry
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]