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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to