lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Bethard <beth...@stanford.edu>
Subject Why is CustomScoreQuery limited to ValueSourceQuery type?
Date Fri, 17 Apr 2009 23:35:47 GMT
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message