Using filter to 1st filter source = xyz and then score documents based on
name = abc
curl -XGET 'http://<localhost>:9200/<index>/_search?pretty' -d '{
"filtered" : {
"query": { "term": { "name : "abc" }},
"filter": { "terms" : { "source" : ["xyz"] }}
}}'
--
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/30432a9d-070d-43da-928b-682dea75eda6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.