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.

Regards,
Paul Elschot

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to