Skip to content

Instantly share code, notes, and snippets.

@quoeamaster
Last active April 14, 2022 11:34
Show Gist options
  • Select an option

  • Save quoeamaster/51ba77aace3deed383dabc7002f685bb to your computer and use it in GitHub Desktop.

Select an option

Save quoeamaster/51ba77aace3deed383dabc7002f685bb to your computer and use it in GitHub Desktop.
PUT courses-00/_doc/A123
{
"instructors": "[email protected],[email protected]",
"course": {
"name": "Introduction to Economics",
"medium": "zoom"
}
}
/* somehow no results return by supplying a partial email address like "jojo" */
GET courses-00/_search
{
"query": {
"match": {
"instructors": "jojo"
}
}
}
/* HOWEVER~ this does return a result */
GET courses-00/_search
{
"query": {
"match": {
"instructors": "[email protected]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment