The index is opened via the IndexReader and then it is a variety of places that factor into scoring, such as the Query, Weight and Scorer classes. Probably the easiest place to start is the TermQuery and TermScorer.

You might also have a read through 
http://lucene.apache.org/java/2_3_2/scoring.html

You might also try stepping through the path of a simple TermQuery via a debugger as it enters the searcher and then expand to try BooleanQuery and some of the other queries.

Cheers,
Grant

On Jun 26, 2008, at 3:24 AM, blazingwolf7 wrote:


hi,

I am fairly new to Lucene and is currently going over its source code. I had read through the code for a few times, mapping it and all but I seems to be facing a problem. I could go all the way to the calculation of score for each result obtain, but strangely I did not managed to locate the part where
Lucene open the index and check for the matching term.

What I mean is that, I want to check on how Lucene actually open the index
and perform the search. I went through all the methods in IndexReader,
IndexSearcher and some other related class but still fail to locate the
method responsible.

Could anyone help me with this? Thanks
--
View this message in context: 
http://www.nabble.com/How-Lucene-Search-tp18127970p18127970.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


--------------------------
Grant Ingersoll
http://www.lucidimagination.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ








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

Reply via email to