On 4/21/2009 12:47 AM, Doron Cohen wrote:
> CustomScoreQuery expects the VSQs to have a score for document matching the
> (main) subQuery - this does not hold for arbitrary queries.

Sure, but it could easily assign 0.0 scores for sub-queries that didn't
match, no?

Steve

> On Sat, Apr 18, 2009 at 2:35 AM, Steven Bethard <beth...@stanford.edu>wrote:
> 
>> CustomScoreQuery only allows the secondary queries to be of type
>> ValueSourceQuery instead of allowing them to be any type of Query. Why
>> is that? Is there something that makes it hard to implement for
>> arbitrary queries?
>>
>> Steve
>>
>> P.S. I played around with this briefly, and simply replacing all
>> ValueSourceQuery references with Query references yields only one simple
>> compile error, where ValueSourceQuery.createWeight() is being used
>> instead of Query.weight() for some reason.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to