ok. I checked with with my data color:orlean => "numFound": 1, -color:[* TO *] => "numFound": 602096 (it used to return 0 until 'pure negational' (sic) queries were delivered) color:orlean -color:[* TO *] => "numFound": 0, color:orlean (*:* -color:[* TO *]) => "numFound": 602097,
fyi https://lucidworks.com/blog/why-not-and-or-and-not/ On Wed, Jul 15, 2015 at 10:55 AM, Alessandro Benedetti < benedetti.ale...@gmail.com> wrote: > 2015-07-15 16:01 GMT+01:00 Mikhail Khludnev <mkhlud...@griddynamics.com>: > > > 1. I can't get your explanation. > > > > 2. childFilter=(image_uri_s:somevalue) OR (-image_uri_s:*) > > is not correct, lacks of quotes , and pointless (selecting some term, and > > negating all terms gives nothing). > > > Not considering the syntax, > We are talking about union of sets, not intersection. > Why this query should give nothing ? > Should return the union of all the children with "some value" in image_uri > and the set with no value at all in that field . > > > > Thus, considerable syntax can be only > > childFilter="other_field:somevalue -image_uri_s:*" > > > > I have to check, but probably you can answer me directly, is it not > possible to express disjunctions there ? > > > > > > 3. I can only guess that you are asking about something like: > > http://localhost:8983/solr/demo/select?q={!parent > > which='type:parent'}image_uri_s:somevalue&fl=*,[child > > parentFilter=type:parent > > childFilter=-type:parent]&indent=true > > > > > > On Tue, Jul 14, 2015 at 11:56 PM, Ramesh Nuthalapati < > > ramesh.nuthalap...@gmail.com> wrote: > > > > > Yes you are right. > > > > > > So the query you are saying should be like below .. or did I > > misunderstood > > > it > > > > > > http://localhost:8983/solr/demo/select?q= {!parent > > > which='type:parent'}&fl=*,[child parentFilter=type:parent > > > childFilter=(image_uri_s:somevalue) OR (-image_uri_s:*)]&indent=true > > > > > > If so, I am getting an error with parsing field name. > > > > > > > > > > > > -- > > > View this message in context: > > > > > > http://lucene.472066.n3.nabble.com/Querying-Nested-documents-tp4217169p4217348.html > > > Sent from the Solr - User mailing list archive at Nabble.com. > > > > > > > > > > > -- > > Sincerely yours > > Mikhail Khludnev > > Principal Engineer, > > Grid Dynamics > > > > <http://www.griddynamics.com> > > <mkhlud...@griddynamics.com> > > > > > > -- > -------------------------- > > Benedetti Alessandro > Visiting card - http://about.me/alessandro_benedetti > Blog - http://alexbenedetti.blogspot.co.uk > > "Tyger, tyger burning bright > In the forests of the night, > What immortal hand or eye > Could frame thy fearful symmetry?" > > William Blake - Songs of Experience -1794 England > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>