Re: Best approach for exact Prefix Field Query

2006-11-16 Thread Martin Braun
hi Erik, > "action and" is likely not a single Term, so you'll want to create a > SpanNearQuery of those individual terms (that match the way they were > when analyzed and indexed, mind you) and use a SpanNearQuery inside a > SpanFirstQuery. Make sense? Yes, it works (see below)! ... but with my

Re: Best approach for exact Prefix Field Query

2006-11-14 Thread Martin Braun
Hi Erik, > SpanFirstQuery is what you're after. thanks for this hint (@Erick: thanks for the good explanation of my prob), I read the chapter for the spanfirstquery in LIA, but what I don't understand is, how do i have to do a "Phrase" SpanFirstQuery? I found a message with example code ( http:/

Re: Best approach for exact Prefix Field Query

2006-11-14 Thread Erick Erickson
What Erik said ... But I thought I'd add that I was pleasantly surprised by how very fast the regex contribution went when creating a filter. And you can cache the filters. Don't be afraid . But in this case I don't think that would help either. Your basic problem is probably that you're indexin

Re: Best approach for exact Prefix Field Query

2006-11-14 Thread Erik Hatcher
Martin, SpanFirstQuery is what you're after. Erik On Nov 14, 2006, at 8:32 AM, Martin Braun wrote: hi, i would like to provide a exact "PrefixField Search", i.e. a search for exactly the first words in a field. I think I can't use a PrefixQuery because it would find also substr

Best approach for exact Prefix Field Query

2006-11-14 Thread Martin Braun
hi, i would like to provide a exact "PrefixField Search", i.e. a search for exactly the first words in a field. I think I can't use a PrefixQuery because it would find also substrings inside the field, e.g. action* would find titles like "Action and knowledge" but also (that's what i don't want it

Re: Best approach for exact Prefix Field Query

2006-11-14 Thread Erik Hatcher
On Nov 14, 2006, at 11:18 AM, Martin Braun wrote: Hi Erik, SpanFirstQuery is what you're after. thanks for this hint (@Erick: thanks for the good explanation of my prob), I read the chapter for the spanfirstquery in LIA, but what I don't understand is, how do i have to do a "Phrase" Span