Skip to content

Instantly share code, notes, and snippets.

@nburt
Created March 21, 2018 19:22
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 nburt/cea693045ea0e81566d5b2a27b0e77e0 to your computer and use it in GitHub Desktop.
Save nburt/cea693045ea0e81566d5b2a27b0e77e0 to your computer and use it in GitHub Desktop.
Elasticsearch multi_match wildcard question
{
"sourceEn": {
"type": "text",
"analyzer": "default_custom_case_insensitive",
"fields": {
"caseSensitive": {
"type": "text",
"analyzer": "default_custom_case_sensitive"
}
}
},
"sourceFr": {
"type": "text",
"analyzer": "french_case_insensitive",
"fields": {
"caseSensitive": {
"type": "text",
"analyzer": "french_case_sensitive"
}
}
}
}
{
"query": {
"multi_match" : {
"query": "brown fox",
"type": "best_fields",
"fields": [ "source*" ]
}
}
}
@kewang
Copy link

kewang commented Nov 27, 2022

Hi

Do you resolve it? I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment