Re: SpanQuery not working as expected

2014-06-09 Thread Darin McBeath
t:efname], 2147483647, true), content:sfname, 0, 0)], 2147483647, true), content:eauthor], 2147483647, true), content:sauthor, 0, 0) Not sure why 'ordered' vs 'unordered' makes it work correctly, but certainly sounds like a bug with Lucene.  If you have any thoughts for a

RE: SpanQuery not working as expected

2014-06-09 Thread Allison, Timothy B.
nt: Friday, June 06, 2014 1:03 PM To: Allison, Timothy B.; java-user@lucene.apache.org Subject: Re: SpanQuery not working as expected Thanks Tim. I have thought about this for the author field (and like you suggest) it would probably work. I was actually going to experiment with this later tod

Re: SpanQuery not working as expected

2014-06-06 Thread Darin McBeath
. I guess I'm curious if what I was doing with the SpanQuery should have worked, whether I misunderstood something, or if this is a bug. Darin. From: "Allison, Timothy B." To: "java-user@lucene.apache.org" ; Darin McBeath Sent: Friday,

RE: SpanQuery not working as expected

2014-06-06 Thread Allison, Timothy B.
Hi Darin, Have you thought about using multivalued fields? If you set the positionIncrementGap to something kind of big (well > 1, say :) ), and you know that your data is always authorfirst, authorlast, you could just search for "darin fulford". The positionincrementgap will prevent matchin