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 = 1and calculate score:
if ( age > 10 )
_score = age * 2
else
_score = age * 1Thats just an example do not try to understand the score function
Is it possible?
Thanx