RE: Why Lucene has to rewrite queries prior to actual searching?

2008-04-10 Thread Chris Hostetter
: term from the query, this part of Lucene should be smarter to know how to : handle wildcards or even regex, so if foo* is received from the query, it : will start with retieving the TermInfo for just foo, and then will : continue and add up more and more TermInfo structure to its cache (or :

RE: Why Lucene has to rewrite queries prior to actual searching?

2008-04-09 Thread Itamar Syn-Hershko
tokenizer to be used at indexing time. Kind regards, Paul Elschot Itamar. -Original Message- From: Paul Elschot [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 1:56 AM To: java-user@lucene.apache.org Subject: Re: Why Lucene has to rewrite queries prior to actual searching

RE: Why Lucene has to rewrite queries prior to actual searching?

2008-04-08 Thread Itamar Syn-Hershko
:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 1:56 AM To: java-user@lucene.apache.org Subject: Re: Why Lucene has to rewrite queries prior to actual searching? Itamar, Have a look here: http://lucene.apache.org/java/2_3_1/scoring.html Regards, Paul Elschot Op Tuesday 08 April 2008 00:34:48

Re: Why Lucene has to rewrite queries prior to actual searching?

2008-04-08 Thread Paul Elschot
regards, Paul Elschot Itamar. -Original Message- From: Paul Elschot [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 1:56 AM To: java-user@lucene.apache.org Subject: Re: Why Lucene has to rewrite queries prior to actual searching? Itamar, Have a look here: http

Why Lucene has to rewrite queries prior to actual searching?

2008-04-07 Thread Itamar Syn-Hershko
Hi all, Can someone from the experts here explain why Lucene has to get a rewritten query for the Searcher - so Phrase or Wildcards queries have to rewrite themselves into a primitive query, that is then passed to Lucene to look for? I'm probably not familiar too much with the internals of

Re: Why Lucene has to rewrite queries prior to actual searching?

2008-04-07 Thread Paul Elschot
Itamar, Query rewrite replaces wildcards with terms available from the index. Usually that involves replacing a wildcard with a BooleanQuery that is an effective OR over the available terms while using a flat coordination factor, i.e. it does not matter how many of the available terms actually

Re: Why Lucene has to rewrite queries prior to actual searching?

2008-04-07 Thread John Wang
Other use is for custom Query objects to reboost or expand the user query from information gathered from the indexreader at search time. -John On Mon, Apr 7, 2008 at 2:56 PM, Paul Elschot [EMAIL PROTECTED] wrote: Itamar, Query rewrite replaces wildcards with terms available from the index.

RE: Why Lucene has to rewrite queries prior to actual searching?

2008-04-07 Thread Itamar Syn-Hershko
:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 12:57 AM To: java-user@lucene.apache.org Subject: Re: Why Lucene has to rewrite queries prior to actual searching? Itamar, Query rewrite replaces wildcards with terms available from the index. Usually that involves replacing a wildcard

Re: Why Lucene has to rewrite queries prior to actual searching?

2008-04-07 Thread Paul Elschot
to rewrite queries prior to actual searching? Itamar, Query rewrite replaces wildcards with terms available from the index. Usually that involves replacing a wildcard with a BooleanQuery that is an effective OR over the available terms while using a flat coordination factor, i.e. it does