On Tue, Sep 29, 2009 at 11:36 AM, Varun Gupta <varun.vgu...@gmail.com> wrote:
> ...
>
> One way that I can think of doing this is by making as many queries as there
> are categories and show these results under each category. But this will be
> very inefficient. Is there any way I can do this ?


Hi Varun!

I think that doing multiple queries doesn't have to be inefficient,
since Solr caches subsequent queries for the same term and facets.

Imagine this as your first query:
- q: xyz
- facets: myfacet

and this as a second query:
- q:xyz
- fq: myfacet=a

Compared to the first query, the second query will be very fast, since
all the hard work ahs been done in query one and then cached.

At least that's my understanding. Please correct me if I'm wrong.

Marian

Reply via email to