Re: Querying Nested documents

2015-07-15 Thread Alessandro Benedetti
Thanks Mikhail, the post is really useful! I will study it in details. A slight change in the syntax change the query parsed. Anyway just tried again q=(image_uri_s:somevalue) OR (-image_uri_s:*) query approach . And actually it is working as expected: q=(name:nome) OR (-name:*) ( give me all t

Re: Querying Nested documents

2015-07-15 Thread Ramesh Nuthalapati
Mikhail - This worked great. 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 Thank you. -- View this message in context: http://lucene.472066.n3.nabble.com/Querying-Nes

Re: Querying Nested documents

2015-07-15 Thread Mikhail Khludnev
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://lu

Re: Querying Nested documents

2015-07-15 Thread Alessandro Benedetti
2015-07-15 16:01 GMT+01:00 Mikhail Khludnev : > 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 talk

Re: Querying Nested documents

2015-07-15 Thread Mikhail Khludnev
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). Thus, considerable syntax can be only childFilter="other_field:somevalue -image_uri_s:*" 3. I c

Re: Querying Nested documents

2015-07-14 Thread Alessandro Benedetti
Not sure the '-' is supported by that queryParser, can you check with the NOT operator ? If not I will check in the code. Cheers 2015-07-14 21:56 GMT+01:00 Ramesh Nuthalapati : > Yes you are right. > > So the query you are saying should be like below .. or did I misunderstood > it > > http://lo

Re: Querying Nested documents

2015-07-14 Thread Ramesh Nuthalapati
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 a

Re: Querying Nested documents

2015-07-14 Thread Alessandro Benedetti
Do you mean this ? I want all the children with a specific value for image_uri_s and all the children which have not that value. In this case i would go with : childFilter=(image_uri_s:) OR (-image_uri_s:*) Is this what do you want ? Cheers 2015-07-14 14:58 GMT+01:00 rameshn : > The problem is

Re: Querying Nested documents

2015-07-14 Thread rameshn
The problem is filtering based on a element in 1234-images doc. 1234-images http://somedomain.com/some.jpg 1:1 I have multiple combinations of "image_flatten_s" and "image_uri_s" and should be able to query / filter on those values for "i

Re: Querying Nested documents

2015-07-13 Thread Mikhail Khludnev
what about? http://localhost:8983/solr/demo/select?q={!parent%20which=%27type:parent%27}&fl=*,[child%20parentFilter=type:parent%20childFilter=-type:parent]&indent=true -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics

Re: Querying Nested documents

2015-07-13 Thread rameshn
My sincere Apologies. Re-submitted directly to the list. Thank you. -- View this message in context: http://lucene.472066.n3.nabble.com/Querying-Nested-documents-tp4217088p4217166.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Querying Nested documents

2015-07-13 Thread Steve Rowe
Hi rameshn, Nabble has a nasty habit of stripping out HTML and XML markup before sending your mail out to the mailing list - see your message quoted below for how it appears to people who aren’t reading via Nabble. My suggestion: directly subscribe to the solr-user mailing list[1] and avoid Na

Re: Querying Nested documents

2015-07-13 Thread Alessandro Benedetti
Hi Rameshn, I would suggest you to rewrite your mail. It is really heavy to understand! Try to format your document and nested document in a nice way ( remember a document is a map field-> value), let's try to not over complicate the things ! Furthermore, try to express the query as well not encod