I have a paragraph saying
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
Now i want to use match phrase for this paragraph with two phrases.
1.simply dummy text of the printing
2.make a type specimen book
Elastic search query should check if both these phrases are present in the paragraph and return answer. How can i do this?
Thanks in Advance.
My take on code:
{
"query": {
"match_phrase": {
"paragraph": {
"query": {"simply dummy text of the printing","make a type specimen book"}
}
}
}
}
Is this the right way to do??