Nevermind I just discovered faceting which does exactly what I want.
Sorry about that.

On Thu, Sep 15, 2011 at 11:31 AM, Tomek Rej <tomek....@roamz.com> wrote:

> Hi there
>
> I'm using Solr to do some category mapping, and part of this process
> consists of finding frequently occuring terms for each category id.
> My index consists of a number of documents (mostly containing between 1 and
> 4 tokens), and a category id that this document belongs to.
> Ideally I'd like to generate document frequencies for each term restricted
> by category, but when I use the following http request it gives me the
> frequencies over
> the whole index (ignoring the category ids).
>
> http://localhost:8983/solr/select?qt=tvrh&q=category_id:9&fl=xxxxx&tv.all=true&rows=1000
>
> Is it possible to make Solr return document frequency over just the
> documents returned from the query? If not what is the proper way to do this?
>
> Thanks,
> Tomek Rej
>

Reply via email to