Hello friends,

I have a schema which contains various types of records of three different
categories for ease of management and for making a single query to fetch all
the data. The fields are grouped into three different types of records. For
example:

fields type 1:

<field name="x_date" type="tdate" indexed="true" stored="true"/>
<field name="x_name" type="tdate" indexed="true" stored="true"/>
<field name="x_type" type="tdate" indexed="true" stored="true"/>

fields type 2:

<field name="y_date" type="tdate" indexed="true" stored="true"/>
<field name="y_name" type="string" indexed="true" stored="true"/>
<field name="y_phone" type="string" indexed="true" stored="true"/>

fields type 3:

<field name="z_date" type="tdate" indexed="true" stored="true"/>
<field name="z_type" type="string" indexed="true" stored="true"/>

common partition field which identifies the category of the data record

<field name="xyz_category" type="string" indexed="true" stored="true"/>

What should I do to fetch all these records in the form: 

(+x_date:[2011-01-01T00:00:00Z TO *] +x_type:(1 OR 2 OR 3 OR 4)
+xyz_category:X) OR
(+y_date:[2012-06-01T00:00:00Z TO *] +y_name:sam~ +xyz_category:Y) OR
(+z_date:[2013-03-01T00:00:00Z TO *] +xyz_category:Z)

Can we construct a query like this? Or is it even possible?

Sam



 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multiple-groups-of-boolean-queries-in-a-single-query-tp4074294.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to