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 sara motahari <sa...@yahoo.com> on 2010/12/15 02:34:52 UTC
limit the search results to one category
Hi all,
I am using a dismax request handler with vrious fieds that it searches, but I
also want to enable the users to select a category from a drop-down list
and only get the results that belong to that category. It seems I can't use a
nested query with dismax as the first one and standard as the nested one? Is
there another way to do this?
R: limit the search results to one category
Posted by Andrea Gazzarini <an...@atcult.it>.
Did you try with filterquery?
Andrea Gazzarini
-----Original Message-----
From: sara motahari <sa...@yahoo.com>
Date: Tue, 14 Dec 2010 17:34:52
To: <so...@lucene.apache.org>
Reply-To: solr-user@lucene.apache.org
Subject: limit the search results to one category
Hi all,
I am using a dismax request handler with vrious fieds that it searches, but I
also want to enable the users to select a category from a drop-down list
and only get the results that belong to that category. It seems I can't use a
nested query with dismax as the first one and standard as the nested one? Is
there another way to do this?
Re: limit the search results to one category
Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: limit the search results to one category
: References: <42...@web52907.mail.re2.yahoo.com>
: <93...@web51308.mail.re2.yahoo.com>
: In-Reply-To: <93...@web51308.mail.re2.yahoo.com>
http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists
When starting a new discussion on a mailing list, please do not reply to
an existing message, instead start a fresh email. Even if you change the
subject line of your email, other mail headers still track which thread
you replied to and your question is "hidden" in that thread and gets less
attention. It makes following discussions in the mailing list archives
particularly difficult.
-Hoss
Re: limit the search results to one category
Posted by sara motahari <sa...@yahoo.com>.
I guess so. I didn't know I could use it with dismax I'll try. thanks Ahmet.
________________________________
From: Ahmet Arslan <io...@yahoo.com>
To: solr-user@lucene.apache.org
Sent: Tue, December 14, 2010 5:42:51 PM
Subject: Re: limit the search results to one category
> I am using a dismax request handler with vrious fieds that
> it searches, but I
> also want to enable the users to select a category from a
> drop-down list
> and only get the results that belong to that category. It
> seems I can't use a
> nested query with dismax as the first one and standard as
> the nested one? Is
> there another way to do this?
Filter Queries? fq=category:foo
http://wiki.apache.org/solr/CommonQueryParameters#fq
Re: limit the search results to one category
Posted by Ahmet Arslan <io...@yahoo.com>.
> I am using a dismax request handler with vrious fieds that
> it searches, but I
> also want to enable the users to select a category from a
> drop-down list
> and only get the results that belong to that category. It
> seems I can't use a
> nested query with dismax as the first one and standard as
> the nested one? Is
> there another way to do this?
Filter Queries? fq=category:foo
http://wiki.apache.org/solr/CommonQueryParameters#fq