Supposing I have a document with just "hi there" as the text. If I do a span query like this:
near(near(term('hi'), term('there'), slop=0, forwards), term('hi'), slop=1, any-direction) that returns no hits. However, if I do a span query like this: near(near(term('hi'), term('there'), slop=0, forwards), term('there'), slop=1, any-direction) that returns the document. It seems that the rule is that if the two spans *start* at the same position, then they are not considered "near" each other. But from the POV of a user (and from this developer) this is lop-sided because in both situations, the second span was inside the first span. It seems like they should either both be considered hits, or both be considered non-hits. I am wondering what others think about this and whether there is any way to manipulate/rewrite the query to get a more balanced-looking result. (I'm sure it gets particularly hairy, though, when your two spans overlap only partially... is that "near" or not?) TX --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org