On Thu, Sep 20, 2012 at 4:28 AM, vempap <phani.vemp...@emc.com> wrote:
> 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.

Doc 7 has "e" and "a" right next to each other. Where's the mystery?

TX

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

Reply via email to