Yea I had an idea about that...

Now logically speaking main text search should be in the Query filter so
there is no way to first filter based on meta data and then do text search
on that limited data set?

Thanks!

On Thu, Feb 24, 2011 at 5:24 PM, Stefan Matheis <
matheis.ste...@googlemail.com> wrote:

> Salman,
>
> afaik, the Query is executed first and afterwards FilterQuery steps in
> Place .. so it's only an additional Filter on your Results.
>
> Recommended Wiki-Pages on FilterQuery:
> * http://wiki.apache.org/solr/CommonQueryParameters#fq
> * http://wiki.apache.org/solr/FilterQueryGuidance
>
> Regards
> Stefan
>
> On Thu, Feb 24, 2011 at 12:46 PM, Salman Akram
> <salman.ak...@northbaysolutions.net> wrote:
> > Hi,
> >
> > I know Filter Query is really useful due to caching but I am confused
> about
> > how it filter results.
> >
> > Lets say I have following criteria
> >
> > Text:: "Abc def"
> > Date: 24th Feb, 2011
> >
> > Now "abc def" might be coming in almost every document but if SOLR first
> > filters based on date it will have to do search only on few documents
> > (instead of millions)
> >
> > If I put Date parameter in fq would it be first filtering on date and
> then
> > doing text search or both of them would be filtered separately and then
> > intersection? If its filtered separately the issue would be that lets say
> > "abd def" takes 20 secs on all documents (without any filters - due to
> large
> > # of documents) and it will be still taking same time but if its done
> only
> > on few documents on that specific date it would be super fast.
> >
> > If fq doesn't give what I am looking for, is there any other parameter?
> > There should be a way as this is a very common scenario.
> >
> >
> >
> > --
> > Regards,
> >
> > Salman Akram
> >
>



-- 
Regards,

Salman Akram

Reply via email to