I'm trying to understand the note in the docs that says the filter
don't do any scoring. I've just tested a filtered query and I got back
non-uniform scores. Can I rely on these scores for relevancy measure
or am I missing something here? Using 0.19.0RC3.
On Mon, 2012-02-27 at 21:32 -0800, Andrei Zmievski wrote:
I'm trying to understand the note in the docs that says the filter
don't do any scoring. I've just tested a filtered query and I got back
non-uniform scores. Can I rely on these scores for relevancy measure
or am I missing something here? Using 0.19.0RC3.
Note: you say a "filtered query", so the query part DOES do scoring.
Just the filter part doesn't.
If you used a constant_score query, then all your docs would have the
same score: 1
{ "query": {
"constant_score": {
"filter": { "term": { "foo": 1 }}
}
}
}
clint
On Feb 28, 4:57 am, Clinton Gormley cl...@traveljury.com wrote:
Note: you say a "filtered query", so the query part DOES do scoring.
Just the filter part doesn't.If you used a constant_score query, then all your docs would have the
same score: 1{ "query": {
"constant_score": {
"filter": { "term": { "foo": 1 }}
}
}
}
Okay, I was confused because a couple of messages on this board said
that you can't use filtered queries if you want to order by the score.
Good to know I can.
-Andrei