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 Ramo Karahasan <ra...@googlemail.com> on 2012/02/01 13:48:09 UTC

AW: Advanced search in solr

Hi Igor,

i didn't read through the article, but currently I'm not using faceted search.

I just want to ask, for example for all products from the category "X" name "Samsung"

I'll read this article this evening. 

Best regards,
Ramo

-----Ursprüngliche Nachricht-----
Von: Igor MILOVANOVIC [mailto:pletisan@gmail.com] 
Gesendet: Dienstag, 31. Januar 2012 23:34
An: solr-user@lucene.apache.org
Betreff: Re: Advanced search in solr

Does this helps you?
http://www.lucidimagination.com/devzone/technical-articles/faceted-search-solr


-- 
Igor Milovanović
http://about.me/igor.milovanovic
http://umotvorine.com/


Re: Advanced search in solr

Posted by Erick Erickson <er...@gmail.com>.
You can also simply add a filter query as &fq=category:smartphones.

Best
Erick

2012/2/1 Gérard Dupont <ge...@gmail.com>:
> Hi Ramo,
>
> The answer is Yes. You just need to add a specific field "category" where
> you state the category of each item saved and then issue a request like
> [text:whatYouWant AND category:smartphone] thus getting all item that
> contain "whatYouWant" and being int he category you pick.
>
> cheers,
>
> gdupont
>
> On 1 February 2012 13:48, Ramo Karahasan <ra...@googlemail.com>wrote:
>
>> Hi Igor,
>>
>> i didn't read through the article, but currently I'm not using faceted
>> search.
>>
>> I just want to ask, for example for all products from the category "X"
>> name "Samsung"
>>
>> I'll read this article this evening.
>>
>> Best regards,
>> Ramo
>>

Re: Advanced search in solr

Posted by Gérard Dupont <ge...@gmail.com>.
Hi Ramo,

The answer is Yes. You just need to add a specific field "category" where
you state the category of each item saved and then issue a request like
[text:whatYouWant AND category:smartphone] thus getting all item that
contain "whatYouWant" and being int he category you pick.

cheers,

gdupont

On 1 February 2012 13:48, Ramo Karahasan <ra...@googlemail.com>wrote:

> Hi Igor,
>
> i didn't read through the article, but currently I'm not using faceted
> search.
>
> I just want to ask, for example for all products from the category "X"
> name "Samsung"
>
> I'll read this article this evening.
>
> Best regards,
> Ramo
>

Re: AW: Advanced search in solr

Posted by Chris Hostetter <ho...@fucit.org>.
: I just want to ask, for example for all products from the category "X" name "Samsung"

before you do anything else, *PLEASE* start with the Solr tutorial, it 
should really help you understand a lot of basic concepts in Solr...

http://lucene.apache.org/solr/tutorial.html

Another resource you might find useful is this series of blog posts i did 
on building a basic solr index from a DB using DIH and setting up faceting 
and tuning the relevancy... 

http://www.lucidimagination.com/blog/tag/isfdb/
Starting with...
http://www.lucidimagination.com/blog/2011/01/21/solr-powered-isfdb-part1/

...all the code is public on github, and every commit is linked to from 
the paragraph where i discuss what i tried/changed, so you can follow 
along on every nitty-gritty change.


-Hoss