Re: Generating phrase queries from term queries

2006-01-12 Thread Chris Hostetter
: > (Assuming *I* understand it) what he's talking baout, is the ability for : > his search GUI to display suggested phrase searches you may want to try : > which consist of the words you just typed in grouped into phrases. : : Yes, that's precisely what I am talking about. Sorry for being unclear

Re: Generating phrase queries from term queries

2006-01-12 Thread Eric Jain
Chris Hostetter wrote: (Assuming *I* understand it) what he's talking baout, is the ability for his search GUI to display suggested phrase searches you may want to try which consist of the words you just typed in grouped into phrases. Yes, that's precisely what I am talking about. Sorry for bei

Re: Generating phrase queries from term queries

2006-01-11 Thread Yonik Seeley
A phrase query with slop scores matching documents higher when the terms are closer together. "a b c"~1 -Yonik On 1/10/06, Eric Jain <[EMAIL PROTECTED]> wrote: > Is there an efficient way to determine if two or more terms frequently > appear next to each other sequence? For a query like: > >

Re: Generating phrase queries from term queries

2006-01-11 Thread Chris Hostetter
: If you can express each phrase as a SpanNearQuery, the occurrences : of the phrases can be easily obtained by iterating over the result of : getSpans() on SpanNearQuery. : It's not as efficient as a specialized PhraseQuery, though. I think you are missunderstanding his goal. (Assuming *I* unde

Re: Generating phrase queries from term queries

2006-01-11 Thread Paul Elschot
On Wednesday 11 January 2006 11:33, Eric Jain wrote: > Paul Elschot wrote: > > One way that might be better is to provide your own Scorer > > that works on the term positions of the three or more terms. > > This would be better for performance because it only uses one > > term positions object per

Re: Generating phrase queries from term queries

2006-01-11 Thread Eric Jain
Paul Elschot wrote: One way that might be better is to provide your own Scorer that works on the term positions of the three or more terms. This would be better for performance because it only uses one term positions object per query term (a, b, and c here). I'm trying to extract the actual phr

Re: Generating phrase queries from term queries

2006-01-11 Thread Andrzej Bialecki
Paul Elschot wrote: On Wednesday 11 January 2006 00:09, Eric Jain wrote: Is there an efficient way to determine if two or more terms frequently appear next to each other sequence? For a query like: a b c one or more of the following suggestions could be generated: "a b c" "a b" c a "b c"

Re: Generating phrase queries from term queries

2006-01-10 Thread Paul Elschot
On Wednesday 11 January 2006 00:09, Eric Jain wrote: > Is there an efficient way to determine if two or more terms frequently > appear next to each other sequence? For a query like: > > a b c > > one or more of the following suggestions could be generated: > > "a b c" > "a b" c > a "b c" > > I

Generating phrase queries from term queries

2006-01-10 Thread Eric Jain
Is there an efficient way to determine if two or more terms frequently appear next to each other sequence? For a query like: a b c one or more of the following suggestions could be generated: "a b c" "a b" c a "b c" I could of course just run a search with all possible combinations, but perh