Re: how can solr search angainst group of field

2009-01-23 Thread Marc Sturlese

I think you could use dismax and restric de result with a filter query. 
Suposing you're using dismaxquery parser it should look like:
http://localhost:8080/solr/select?q=whateverfq=category:3
I think this would sort your case


surfer10 wrote:
 
 definitly disMax do the thing by searching one term against multifield.
 but  what if my index contains two additional multivalued fields like
 category id
 
 i need to search against terms in particular fields of documents and
 dismax do this well thru qf=field1,field2
 how can i filter results which has only 1 or 2 or 3 in categoryID
 field?
 
 could you please help me to figure this?
 
 update: i've found discursion about that on
 http://www.nabble.com/using-dismax-with-additional-query--td18178512.html#a18178512
 there is a suggestion to use filterquery. i'll check it out
 

-- 
View this message in context: 
http://www.nabble.com/how-can-solr-search-angainst-group-of-field-tp21557783p21625476.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: how can solr search angainst group of field

2009-01-22 Thread surfer10

definitly disMax do the thing by searching one term against multifield. but 
what if my index contains two additional multivalued fields like category id

i need to search against terms in particular fields of documents and dismax
do this well thru qf=field1,field2
how can i filter results which has only 1 or 2 or 3 in categoryID
field?

could you please help me to figure this?

-- 
View this message in context: 
http://www.nabble.com/how-can-solr-search-angainst-group-of-field-tp21557783p21619981.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: how can solr search angainst group of field

2009-01-20 Thread Marc Sturlese

Chech the DismaxRequestHandler, maybe it helps.
It allows you to choose more that one field where to search:
http://wiki.apache.org/solr/DisMaxRequestHandler#head-af452050ee272a1c88e2ff89dc0012049e69e180


surfer10 wrote:
 
 Good days gentlemen.
 
 in my search engine i have 4 groups of text:
 1) user address
 2) user description
 3) ...
 4) ...
 
 I want to give users ability to search all of them with ability to
 conjunction selection for searching some of them. conjunction means that
 user should be able to search 1) and 2) fields, 1 AND 3 fields and so on.
 
 I'm realizing how i can give them ability to search everywhere - it can be
 archieved by copyFields parameter but how can user search for bunch of
 terms in different groups?
 
 now i'm using such syntax
 
 +(default_field:WORD default_field:WORD2 default_field:WORD3)
 
 if i want to give them oportunity to search by 2 of 4 fields, i should
 repeat a construction?
 i.e.
 
 (field1:WORD field1:WORD2 field1:WORD3) (field2:WORD field2:WORD2
 field2:WORD3) ?
 
 is there any ability to specify field1,field2:TERM ?
 

-- 
View this message in context: 
http://www.nabble.com/how-can-solr-search-angainst-group-of-field-tp21557783p21559093.html
Sent from the Solr - User mailing list archive at Nabble.com.