Query advice

Hi, I'm new here. I have read through the documentation. I have a very specific problem. It seems there are multiple ways to solve it. So, rather than reinvent the wheel, I'm seeking your advice. What's the best solution to this problem?

I am going to store news articles in Elasticsearch. The main fields will be Headline, Body, Source.

I want to run a single search that works like this:

  • the word "Apple" must appear in either the Headline or Body.
  • either the phrase "iphone 9" OR "Tim Cook" must appear in the Headline or Body.
  • the phrase "press release" must not appear in the Headline.
  • the Source must equal "Wall Street Journal"

What is the best way to accomplish this?

Since it will be keyword search, what is phrase you will be entering ? is it "Apple iphone 9 Tim Cook press release ... " ?

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