Re: Can we build complex filter queries in SOLR

2009-12-10 Thread darniz

Anyway i wrote a lucene syntax for this
+((+category:audio +brand:sony)|(+category:video +brand:sony))

Thanks
darniz

Shalin Shekhar Mangar wrote:
 
 On Thu, Dec 10, 2009 at 2:50 AM, darniz rnizamud...@edmunds.com wrote:
 

 Can you please let me know how to describe that condition.


 For example lets say i want to give the following condition

 ((category:audio or category:video) AND (brand:sony OR brand:samsung OR
 brand:sanyo))
 How would you represent this condition in fq paramenter of dismax


 Are you saying that the above syntax does not work in an fq? Note, the
 or
 should be in capitals.
 
 -- 
 Regards,
 Shalin Shekhar Mangar.
 
 

-- 
View this message in context: 
http://old.nabble.com/Can-we-build-complex-filter-queries-in-SOLR-tp12735426p26731738.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Can we build complex filter queries in SOLR

2009-12-09 Thread darniz

Can you please let me know how to describe that condition.


For example lets say i want to give the following condition

((category:audio or category:video) AND (brand:sony OR brand:samsung OR
brand:sanyo))
How would you represent this condition in fq paramenter of dismax

str name=fqcondition goes here/str

is it represented in lucene syntax.

Please let me know

darniz



Alessandro Ferrucci-3 wrote:
 
 yeah that is possible, I just tried on one of my solr instances..let's say
 you have an index of player names:
 
 (first-name:Tim AND last-name:Anderson) OR (first-name:Anwar AND
 last-name:Johnson) OR (conference:Mountain West)
 
 will give you the results that logically match this query..
 
 HTH.
 
 Alessandro Ferrucci :)
 
 On 9/17/07, Dilip.TS dilip...@starmarksv.com wrote:

 Hi,

 I would like to know if we can build a complex filter queryString in SOLR
 using the following condition.
  (Field1 = abc AND Field2 = def) OR (Field3 = abcd AND
 Field4
 = defgh AND (...)).
   so on...

 Thanks in advance

 Regards,
 Dilip TS


 
 

-- 
View this message in context: 
http://old.nabble.com/Can-we-build-complex-filter-queries-in-SOLR-tp12735426p26717914.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: Can we build complex filter queries in SOLR

2009-12-09 Thread Shalin Shekhar Mangar
On Thu, Dec 10, 2009 at 2:50 AM, darniz rnizamud...@edmunds.com wrote:


 Can you please let me know how to describe that condition.


 For example lets say i want to give the following condition

 ((category:audio or category:video) AND (brand:sony OR brand:samsung OR
 brand:sanyo))
 How would you represent this condition in fq paramenter of dismax


Are you saying that the above syntax does not work in an fq? Note, the or
should be in capitals.

-- 
Regards,
Shalin Shekhar Mangar.


Re: Can we build complex filter queries in SOLR

2007-09-17 Thread Alessandro Ferrucci
yeah that is possible, I just tried on one of my solr instances..let's say
you have an index of player names:

(first-name:Tim AND last-name:Anderson) OR (first-name:Anwar AND
last-name:Johnson) OR (conference:Mountain West)

will give you the results that logically match this query..

HTH.

Alessandro Ferrucci :)

On 9/17/07, Dilip.TS [EMAIL PROTECTED] wrote:

 Hi,

 I would like to know if we can build a complex filter queryString in SOLR
 using the following condition.
  (Field1 = abc AND Field2 = def) OR (Field3 = abcd AND
 Field4
 = defgh AND (...)).
   so on...

 Thanks in advance

 Regards,
 Dilip TS