Is it possible to use filtered query with custom filters score?

Yes, its possible. The query you specify within a custom_score query can be
any query you want to use.

On Thu, Sep 29, 2011 at 5:41 PM, BlueZero bluezero@bluezero.sk wrote:

I need to search documents that are matching some filters. But i want
to sort them by custom score script.
FI:
filter by gender = 1

and calculate score:
if ( age > 10 )
_score = age * 2
else
_score = age * 1

Thats just an example do not try to understand the score function :smiley:

Is it possible?

Thanx