lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramzi Alqrainy <ramzi.alqra...@gmail.com>
Subject Solr : Condition Before Group By
Date Tue, 04 Sep 2012 08:28:30 GMT
Hi, 

I would like to help me for certain problem. 

My problem is : 

I have documents and I do group by on certain field (e.g. Field1).  I want
to get documents with Field2 is [3 or 9 or 12] if exist, otherwise get any
document. please see the below example. 


D1 :            ----------- 
Field1 : 1                  - 
Field2 : 3                 --------->  D1 (group by on field1 and field2 is
3) 
                              - 
D2:             ----------- 
Field1 : 1 
Field2 : 4 


D3:            ----------- 
Field1 : 2               - 
Field2 : 5                --------------> any document D3 or D4 
                            - 
D4:            ----------- 
Field1 : 2 
Field2 : 7 

I want to get the results like below 
D1(Mandatory) 
(D3 OR D4)



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Condition-Before-Group-By-tp4005179.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message