You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Peter A. Kirk" <pk...@alpha-solutions.dk> on 2010/09/15 06:26:41 UTC

LukeRequestHandler numTerms

Hi

when using LukeRequestHandler, I can for example call:
http://localhost:8983/solr/admin/luke?fl=name&fl=cat

which will return data including the frequency of the top 10 search terms in the specified fields.

I can also add a "numTerms" parameter to obtain more than the top 10.

But how do I ensure I get *all* the terms in the index returned? Can I set "numTerms=ALL" or something like that?


Thanks,
Peter

RE: LukeRequestHandler numTerms

Posted by Jonathan Rochkind <ro...@jhu.edu>.
> when using LukeRequestHandler...
> But how do I ensure I get *all* the terms in the index returned? Can I set "numTerms=ALL" or something like that?

I'm not sure about LukeRequestHandler, but you can do that with the  TermsComponent instead. 

/terms?terms.fl=name&terms.limit=-1

Will give you a response with all terms, and their frequencies.  You can also use an actual limit, and page through the results, which might be useful if you have a real lot of terms. You can sort by term index order, or by frequency. 

http://wiki.apache.org/solr/TermsComponent

Jonathan