tntsearch icon indicating copy to clipboard operation
tntsearch copied to clipboard

How to perform a Boolean AND search with TNTSearch?

Open q2apro opened this issue 1 year ago • 1 comments

By default searching cats dogs with TNTSearch shows all results that contain either cats OR dogs.

However, I would like to get only the results that contain both search terms provided.

What I tried:

  • cats AND dogs
  • cats & dogs
  • (cats dogs)
  • +cats +dogs

None of the queries above does a boolean AND search.

So what is the correct query in TNTSearch?

q2apro avatar Jul 11 '24 07:07 q2apro

use booleanSearch method instead

somegooser avatar Jul 25 '24 14:07 somegooser