Filtered custom_score query

Hi,

Can you please help and explain to me the exact difference between these
two queries?

  1. {
    "query": {
    "custom_score": {
    "lang": "native",
    "script": "SomeScript",
    "params": {
    "param1": 1.0,
    "param2": 2.0,
    },
    "query": {
    "filtered": {
    "query": {
    "match_all": {}
    },
    "filter": {
    (all the filters here...)

{
"query": {
"filtered": {
"query": {
"custom_score": {
"lang": "native",
"script": "SomeScript",
"params": {
"param1": 1.0,
"param2": 2.0,
},
"query": {
"match_all": {}
}
}
},
"filter": {
(all the filters here...)

I think that the first actually make the filters first and then the query,
but the first don't.
why is that?
is there more differences?

Thanks.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/28896ae6-806b-4aa7-91a0-a7c4451ca1c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.