Is there a Query boosting 50-50 over 1000-1 ?

2008-08-27 Thread Shi Hui Liu
Hi, Say, I have a query with two terms: A + B, I want to return the documents with 50 of A and 50 of B on top of documents with 1000 of A and 1 of B. Is there an existing Query class can handle this case or I have to implement a new Query? Thank you, Shi Hui

Clarity: Is there a Query boosting 50-50 over 1000-1 ?

2008-08-27 Thread Shi Hui Liu
and 1 of B? And I'm looking at the source code and found lots of classes are not public and some important methods are protected. What's the reason? Why make them public and let users to customize the Query easily? Thank you very much, Shi Hui -Original Message----- From: Shi Hu

RE: Clarity: Is there a Query boosting 50-50 over 1000-1 ?

2008-08-28 Thread Shi Hui Liu
e, Shi Hui -Original Message- From: Grant Ingersoll [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 5:57 AM To: java-user@lucene.apache.org Subject: Re: Clarity: Is there a Query boosting 50-50 over 1000-1 ? On Aug 27, 2008, at 7:34 PM, Shi Hui Liu wrote: > Hi, > > I think

RE: Clarity: Is there a Query boosting 50-50 over 1000-1 ?

2008-08-29 Thread Shi Hui Liu
n one that is ranked higher. Now, if you told me you had 50 queries that all scored badly, that is different. On Aug 28, 2008, at 1:37 PM, Shi Hui Liu wrote: > Hi Grant, > > Thank you for your help. My query is A AND B. The problem is if I > use BooleanQuery, I got score 12