Hello All, I've a issue with respect to the distance measure of SpanNearQuery in Lucene. Let's say I've following two documents:
DocID: 6, cotent:"1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1001 1002 1003 1004 1005 1006 1007 1008 1009 1100", DocID: 7, content:"a b c d e a b c f g h i j k l m l k j z z z" If my span query is : a) "3n(a,e)" - It matches doc 7 But, if it is: b) "3n(1,5)" - It does not match doc 6 If query is: c) "4n(1,5)" - it matches doc 6 I have no clue why a) works rather not b). I tried to debug the code, but couldn't figure it out. Any help ? -- View this message in context: http://lucene.472066.n3.nabble.com/SpanNearQuery-distance-issue-tp4008974.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org