The Terms component[1] should do the trick for you.
Just use the regular expression or prefix filtering and you should be able
to get the stats you want.

If you were interested in extracting the DV when returning docs you may be
interested in function queries and specifically this one :

docfreq(field,val)
"Returns the number of documents that contain the term in the field. This is
a constant (the same value for all documents in the index).

You can quote the term if it’s more complex, or do parameter substitution
for the term value.
docfreq(text,'solr')"

…​&defType=func &q=docfreq(text,$myterm)&myterm=solr



[1] https://lucene.apache.org/solr/guide/6_6/the-terms-component.html



-----
---------------
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to