0

I want to get only those documents which, for example, have term frequency >= N for word 'test_word' in field 'test_field'.

Alex
  • 1

2 Answers2

0

Maybe you can use termsComponent with function terms.mincount:

terms.mincount= - Optional. The minimum doc frequency to return in order to be included. Results are inclusive of the mincount (i.e. >= mincount)

So, you could use a query like:

http://localhost:8983/solr/terms?q=test_word:test_word&terms.fl=test_field&terms.test_mincount=N
alexf
  • 1,303
  • 9
  • 20
0

You can use a function query by using the termfreq function:

Returns the number of times the term appears in the field for that document.

MatsLindh
  • 49,529
  • 4
  • 53
  • 84