Questions on Query Scorer

2006-06-15 Thread Ferdinand Chan
How can I create a QueryScorer in Lucene 2.0??? When I create a QueryScorer using the following codes, BooleanQuery booleanQuery = new BooleanQuery(); booleanQuery.add(q1,BooleanClause.Occur.SHOULD); booleanQuery.add(q2,BooleanClause.Occur.SHOULD); QueryScorer scorer = new QueryScorer

Question on MutliFieldQueryParser

2006-06-15 Thread Ferdinand Chan
My webapp is developed with Lucene 1.4.3 and I want to upgrade the Lucene library to version 2.0 But in Lucene 2.0, the MultiFieldQueryParser class was deprecated. I try to rewrite the code using a BooleanQuery as follows. Original code: String[] fields = {"TERM_A","TERM_B"}; quer

RE: Questions on Query Scorer

2006-06-15 Thread Ferdinand Chan
s on Query Scorer Hello, The problem may be rather in the name of the field you are querying - "prohibited" in your case. You can check with Luke(http://www.getopt.org/luke/) the structure of the index on which you are performing your query. Mile -Original Message----- From: Fe