Using q=NAME:Smith&fq=AGE:30 would be better because filter queries
are cached separately and can be re-used regardless of the NAME query.
So if you expect your filter queries to be re-used, you should use fq,
otherwise performance would probably be the same for both "NAME:Smith
AND AGE:30" and "q=NAME:Smith&fq=AGE:30"

On Feb 13, 2008 1:31 AM, Evgeniy Strokin <[EMAIL PROTECTED]> wrote:
> Hello,.. Lets say I have one query like this:
> NAME:Smith
> I need to restrict the result and I'm doing this:
> NAME:Smith AND AGE:30
> Also, I can do this using fq parameter:
> q=NAME:Smith&fq=AGE:30
> The result of second and third queries should be the same, right?
> But why should I use fq then? In which cases this is better? Can you give me 
> example to better understand the problem?
>
> Thank you
> Gene



-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to