How can I use an array of phrases to be searched in an index

Im having an array of phrases ,and I need these to be searched inside an index which I made with crawled data..is there any way to do this

Thanks in advance

What should match? All terms? All phrases? Some phrases?

some phrases or all phrases ..if all phrases are present in a heading it should get the highest score

So a bool query with a should array where you put as many match_phrase queries as you need.

I need something like
Var array=["software development","elastic search is great"];

"match":{"heading": array}

The size of an array can be varied.

Try what I said.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.