-1

I am creating a website using django and React. I have setup a search engine using elasticsearch and I showed the data in my website using React-searchkit. I want to integrate boolean search in my searchbox to allow the user to search using boolean operators like this: enter image description here

so how can I do that?

1 Answers1

0

You can to start in Query String Query.

GET /_search
{
  "query": {
    "query_string": {
      "query": "(new york city) OR (big apple)",
      "default_field": "content"
    }
  }
}
rabbitbr
  • 2,991
  • 2
  • 4
  • 17