On Oct 22, 2009, at 9:44 PM, Chris Hostetter wrote:


: > Why wouldn't you just query the function directly and leave out the *:* ?
:
: *:* was just a quick example, I might have other constant score queries, but I : guess I probably could do a filter query plus the function query, too.

I guess i don't udnerstand what your point was ... you mentioned that
using a function query with *:* didn't produce scores that equal to the function output, but that's just the nature of how a BooleanQuery works,
it aggregates the clauses.  if you *want* the scores to be a factor of
both clauses, then use a booleanQuery, if you have a clause that you don't
want factoring into the query, use "fq"


Fair enough, I guess I was just kind of expecting a constant score query + a function query to result in a score of whatever the function query is. This is a common trick to sort by a function, but it's easy enough to just ^0 the non function clause.

-Grant

Reply via email to