ludicrousdisplay commented on issue #14056:
URL: https://github.com/apache/lucene/issues/14056#issuecomment-2535465658
My understanding of the SpanQuery API is that in the example you provide it
will be looking for exact matches of the "applepie" token next to the
"bananapie" token. Therefore the separate tokens "apple" and "pie" will not
match the first query term "applepie".
Since span queries can be nested you could break each search term "applepie"
and "bananapie" into a pair of tokens ("apple", "pie) and create each as a
SpanNearQuery, then combine them into another one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]