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 hadi <md...@gmail.com> on 2012/04/14 08:06:24 UTC

Category the result search

hi

I am new to solr, I crawled about 1000 news site with nutch and i use solr
to browse the result, but i want to categorize the sites to some categories
like(sport news,politic news,science and etc ..)
I know i have to use solr faceting but i do not know how can i do such
implementation for solr or at least how can i force solr to know my category
fields?

thanks

--
View this message in context: http://lucene.472066.n3.nabble.com/Category-the-result-search-tp3909710p3909710.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Category the result search

Posted by Erick Erickson <er...@gmail.com>.
Faces are query-time construct, so you can
easily facet on the _values_ of fields
by specifying the field name in your query. See:

http://wiki.apache.org/solr/SimpleFacetParameters

Best
Erick

On Sat, Apr 14, 2012 at 2:06 AM, hadi <md...@gmail.com> wrote:
> hi
>
> I am new to solr, I crawled about 1000 news site with nutch and i use solr
> to browse the result, but i want to categorize the sites to some categories
> like(sport news,politic news,science and etc ..)
> I know i have to use solr faceting but i do not know how can i do such
> implementation for solr or at least how can i force solr to know my category
> fields?
>
> thanks
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Category-the-result-search-tp3909710p3909710.html
> Sent from the Solr - User mailing list archive at Nabble.com.