Skip to content

Instantly share code, notes, and snippets.

@mohammedESSABRI
Last active June 19, 2018 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohammedESSABRI/be269579f3521e8651b518bb1e2d5cdc to your computer and use it in GitHub Desktop.
Save mohammedESSABRI/be269579f3521e8651b518bb1e2d5cdc to your computer and use it in GitHub Desktop.
problem with multi_match
curl -XGET 'http://localhost/_search?pretty' -d'{
"from" : 0,
"size" : 6,
"query" : {
"filtered" : {
"query" : {
"bool" : {
"must" : [ {
"bool" : {
"must" : {
"multi_match" : {
"query" : "EN",
"fields" : [ "proceedingslanguage_*", "proceedingslanguage_en^5.0" ],
"type" : "best_fields"
}
}
}
} ]
}
},
"filter" : {
"type" : {
"value" : "decision"
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment