lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <>
Subject Re: QueryTerms vs. IndexTerms
Date Mon, 03 Jul 2006 18:49:41 GMT
On Monday 03 July 2006 19:52, Patricio wrote:
> Hello, I'm novice in Java.
> I try to understand how the query terms are matched with the index terms to
> calculate the Hits.
> I thought that the class "IndexSearcher" was responsible for this process,
> but apparently the classes "Scorer" and "HitCollector" are essential to
> determine the retrieved documents.
> I looked for this information in "Lucene in Action", but unfortunately I
> couldn't find enough details (in Chapter 3.2) about this topic.
> Does somebody know where takes place (source code) this comparison?

One place is PrefixQuery.rewrite(IndexReader). Here a prefixed query term,
for example prefer*, is replaced by terms in the index, for example by prefer,
preferable, prefered, preference.

Paul Elschot

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message