How can I set multiple search keywords as SQL AND condition?


(tanimoto) #1

When I search personal computer → Hit the document that includes personal OR computer
Can I change this condition to → Hit the document that includes personal AND computer??

I'm using elasticsearch 5.1.1


(Andrew Kroh) #2

You can put the string in quotes to search for the exact phrase or you can specify a boolean condition like you gave using AND. See the Query String Syntax documenation.


(tanimoto) #3

thank you so much!!
This is exactly what I was looking for!!!


(system) #4

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