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
will take a look at the Scorer - can you describe in short what > > exactly it does and where and when it is being called? > > > > I don't get John's comment though - Query::rewrite is being called > > prior to the actual searching (through QueryParser), how come it

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

2008-04-08 Thread Paul Elschot
is no specific reason why it cannot be done, one only needs to provide the corresponding 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:5

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

2008-04-08 Thread Itamar Syn-Hershko
age- 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://lucene.apache.org/java/2_3_1/scoring.html Regards, Paul Elschot

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

2008-04-07 Thread Paul Elschot
-- > From: Paul Elschot [mailto:[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

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

2008-04-07 Thread Itamar Syn-Hershko
Itamar. -Original Message- From: Paul Elschot [mailto:[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 i

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 ind

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 ma