Hello all,

I have a question about searching within multiple fields. I have the
following code for doing that (searchFields provides two fields in which I
want to search):

IndexSearcher searcher = new IndexSearcher(indexDirectory);
// search over multiple index fields
Query query = MultiFieldQueryParser.parse(queryString, searchFields,
analyser);
hits = searcher.search(query);

I am wondering how this is done internally (I am using Lucene 1.2). Does
Lucene 1.2 merge the terms of the two fields and create a single score from
this? Or does Lucene 1.2 create a score from each field that is involved and
then calculate a combined score from all those?

Karl

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie

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

Reply via email to