Created
August 16, 2017 12:43
-
-
Save sajidzaman/66ca0cf1c62a5c1a81634cf862699c3a to your computer and use it in GitHub Desktop.
Multi match elastic search query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET courses/_search | |
{ | |
"query" :{ | |
"multi_match": { | |
"query": "accounting", | |
"fields": ["name","professor.department"] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment