Created
April 14, 2022 06:50
-
-
Save quoeamaster/34854a92917d2586a96d90b260fc9635 to your computer and use it in GitHub Desktop.
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
PUT courses-02/_doc/Abc123 | |
{ | |
"instructors": "donna.karen@uni.gov,jojo.star.crusade@uni.gov", | |
"course": { | |
"name": "Introduction to Economics", | |
"medium": "skype" | |
} | |
} | |
GET courses-02/_search | |
{ | |
"query": { | |
"match": { | |
"instructors": "karen" | |
} | |
} | |
} | |
... | |
/* result */ | |
{ | |
"hits" : { | |
"hits" : [ | |
{ | |
"_index" : "courses-02", | |
"_type" : "_doc", | |
"_id" : "Abc123", | |
"_score" : 0.2876821, | |
"_source" : { | |
"instructors" : "donna.karen@uni.gov,jojo.star.crusade@uni.gov", | |
"course" : { | |
"name" : "Introduction to Economics", | |
"medium" : "skype" | |
} | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment