Re: About searching in multiple fields with one query

2005-11-14 Thread Karl Koch
on the BM25 algorithm it is generalisable to a scoring function like the one used in Lucene. Karl > --- Ursprüngliche Nachricht --- > Von: jian chen <[EMAIL PROTECTED]> > An: java-user@lucene.apache.org > Betreff: Re: About searching in multiple fields with one query > Datum

Re: About searching in multiple fields with one query

2005-11-13 Thread jian chen
Hi, Karl, Looking at the Lucene 1.2 source code, looks to me that the MultiFieldQueryParser generates a BooleanQuery. Each sub-query with the BooleanQuery is for one field. The actually calculation of the scoring is with BooleanScorer.java, where the scores from each sub-query is accumulated. So,

About searching in multiple fields with one query

2005-11-13 Thread Karl Koch
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 = MultiFieldQuer