Created
April 14, 2022 11:27
-
-
Save quoeamaster/f114741ac6848c456cd4a5bd7633bcab 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
GET courses-03/_search?filter_path=hits.hits._source,hits.hits._score,hits.hits.highlight | |
{ | |
"query": { | |
"match": { | |
"comments.email": "donna.liselot@uni.gov" | |
} | |
}, | |
"highlight": { | |
"fields": { | |
"comments.email": {} | |
} | |
} | |
} | |
... results ... | |
{ | |
"hits" : { | |
"hits" : [ | |
{ | |
"_score" : 2.0658937, | |
"_source" : { | |
"comments" : "welcome donna.liselot@uni.gov to join the training team" | |
}, | |
"highlight" : { | |
"comments.email" : [ | |
"welcome <em>donna</em>.<em>liselot</em>@<em>uni</em>.<em>gov</em> to join the training team" | |
] | |
} | |
}, | |
{ | |
"_score" : 0.7059534, | |
"_source" : { | |
"comments" : "if you think the course is nice and wanna comment, please send an email to -> donna.karen@uni.gov or jojo.star.crusade@uni.gov . Thx~" | |
}, | |
"highlight" : { | |
"comments.email" : [ | |
"if you think the course is nice and wanna comment, please send an email to -> <em>donna</em>.karen@<em>uni</em>.<em>gov</em> or", | |
"jojo.star.crusade@<em>uni</em>.<em>gov</em> ." | |
] | |
} | |
}, | |
{ | |
"_score" : 0.3797775, | |
"_source" : { | |
"comments" : "Shout out to the great instructors donnie.yun@uni.gov and blah@uni.gov.uk" | |
}, | |
"highlight" : { | |
"comments.email" : [ | |
"Shout out to the great instructors donnie.yun@<em>uni</em>.<em>gov</em> and blah@<em>uni</em>.<em>gov</em>.uk" | |
] | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment