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 sukalyan_banerjee <su...@gmail.com> on 2011/04/18 08:41:01 UTC

SOLR Category based seach

Hi All,
I am using apache-solr-1.4.1 and jdk1.6. I have the following scenario.
I have 3 categories of data indexed in solr i.e. CITIES, STATES, COUNTRY.
When I query data from SOLR I need the data from SOLR based on the following
criteria:
	
In a single query to Solr Engine I need data fetched from Solr Engine
grouped by each category 
with particular count for each category.
How can I specify this condition in SOLR?
I have tried to use SOLR Field Collapsing feature, but I am not able to get
the desired output from SOLR.
Please suggest what can I do.


--
View this message in context: http://lucene.472066.n3.nabble.com/SOLR-Category-based-seach-tp2833279p2833279.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: SOLR Category based seach

Posted by Erick Erickson <er...@gmail.com>.
Hmmmm, grouping isn't *in* 1.4.1 I don't think, so how are you
trying to do this?

Have you looked at faceting?

Best
Erick

On Mon, Apr 18, 2011 at 2:41 AM, sukalyan_banerjee
<su...@gmail.com> wrote:
> Hi All,
> I am using apache-solr-1.4.1 and jdk1.6. I have the following scenario.
> I have 3 categories of data indexed in solr i.e. CITIES, STATES, COUNTRY.
> When I query data from SOLR I need the data from SOLR based on the following
> criteria:
>
> In a single query to Solr Engine I need data fetched from Solr Engine
> grouped by each category
> with particular count for each category.
> How can I specify this condition in SOLR?
> I have tried to use SOLR Field Collapsing feature, but I am not able to get
> the desired output from SOLR.
> Please suggest what can I do.
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/SOLR-Category-based-seach-tp2833279p2833279.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>