> I want to produce frequency analysis of all tokens inside > my solr Index from > a specific (content) field. > > When I use TermsComponent or FacetCounts, what I get is how > many records or > documents each term appears in (which again confuses me as > to what the > difference is, is it facets are restricted to terms in > result set and > termscomponent is not restricted by the query?). Is > there yet a way to get > total terms count (not per document but across the whole > index)?
Terms Component does not respect &q= parameter. In other words, it is not restricted by the query. > I have > tried searching in archieves and across web but closest > match I found is > this: http://search-lucene.com/m/of5Fn1PUOHU/ > > It is suggested in this post that I can post the mentioned > lines of code > into TermsComponent.java and it should work. However, > the code seems to > have changed since and when I try this, the Class TermDocs > is not even > recognized. What version of solr are you using?