How to use min_term_freq with bool query?

(mia) #1

I have this query:


and I want to exclude results that have the term mentioned 1 times.

I have already tried more like this api without any luck. I have also looked to term vector but it also did not work.


For the exclusion you could use the must_not clause :

(mia) #3

What exactly should I exclude? Can you give me example please?


(mia) #4



I think I misunderstood what you want to achieve here :
But if you want to exclude ONLY the terms mentioned once?
There's one approach where you could add the term_vectors data (term_frequency), into your documents during the indexing process, then query on the term_frequency for the specific term.

(system) #6

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