Re: Possible parent/child query bug

2013-12-16 Thread Mikhail Khludnev
On Fri, Nov 22, 2013 at 6:18 PM, Neil Ireson wrote: > > If the "child of” query matches both parent and child docs it returns the > child documents but a spurious numFound. follow up https://issues.apache.org/jira/browse/SOLR-5553 -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid D

Re: Possible parent/child query bug

2013-11-22 Thread Mikhail Khludnev
On Fri, Nov 22, 2013 at 4:28 PM, Neil Ireson wrote: > returns all the child docs, as expected, however > > http://localhost:8090/solr/select?q={!child+of=doc_type:parent} > > returns all the parent docs. > aha. I remember it. I implemented this special case for reusing segmented parent filter in

Re: Possible parent/child query bug

2013-11-22 Thread Neil Ireson
Hi Mikhail, You are right. If the "child of” query matches both parent and child docs it returns the child documents but a spurious numFound. For the “parent which” query if it matches both parent and child docs it returns a handy error message “child query must only match non-parent docs...

Re: Possible parent/child query bug

2013-11-22 Thread Mikhail Khludnev
Neil, quick hint. Can't you run Solr (jetty) with -ea ? my feeling is that nested query (which you put *:*) should be orthogonal to children, that's confirmed by assert. That's true for {!parent} at least. On Fri, Nov 22, 2

Re: Possible parent/child query bug

2013-11-22 Thread Neil Ireson
Some further odd behaviour. For my index http://localhost:8090/solr/select?q={!child+of=doc_type:parent}*:* Returns a numFound=“22984”, when there are only 2910 documents in the index (748 parents, 2162 children). On 22 Nov 2013, at 12:28, Neil Ireson wrote: > > Note sure if this is a bu