Can you please show me the final query that works? I am trying to do 
something similar using a filtered query and then applying custom filter 
score to the filtered query.

Thanks!


On Thursday, September 29, 2011 10:41:29 AM UTC-4, BlueZero 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 :D 
>
> Is it possible? 
>
> Thanx

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/33ad8ad4-b5f2-4a3a-8949-ae68198dd5cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to