I hope someone can help me because I have spent too many time looking for this issue :(
I have 2 kind of documents related with an 1-n relation, in my example this is 1 activity has many schedules. To achieve this I have some inner child document with schedule fields inside the activity document. The identifier field of the document is called content_type. In the activity I have a boolean field to detect if the document has children (schedules) called 'has_schedules'. I'm trying to find the documents whose children have a weekday = 1 OR they don't have children. Here's the filter query: "{!parent which=content_type:activity}(schedule.weekday:1)" OR has_schedules:false I don't understand how the " char works in here, wherever I enclose the condition with " char, Solr ignores it. For example the previous query is equal to has_schedules:false, on the contrary I only get the first condition. Also, if I use the "(" it gives me a syntax error. The other issue here, is that if I remove the " chars, Solr gets the second condition (has_schedules:false) as part of the nested child query, which implies an error as this is a parent's field. Thank you for any help, -- Ivan