Re: Mixing simple and nested docs in same update?

2018-02-06 Thread Jan Høydahl
Hi Mikhail, Lacking clarity on this in the Ref Guide, I'm trying to understand all requirements for block join here. I have noticed that if I index the blocks as one ADD request and then afterwards index the "other" single documents in another request, then the results look ok. But is it

Re: Mixing simple and nested docs in same update?

2018-02-05 Thread Mikhail Khludnev
Jan, mixing plan docs and blocks are not supported. On Thu, Jan 11, 2018 at 2:42 AM, Jan Høydahl wrote: > Hi, > > We index several large nested documents. We found that querying the data > behaves differently depending on how the documents are indexed. > > To reproduce: >

Re: Mixing simple and nested docs in same update?

2018-01-31 Thread Jan Høydahl
Thanks for the reply. I see that the child doctransformer (https://lucene.apache.org/solr/guide/6_6/transforming-result-documents.html#TransformingResultDocuments-_child_-ChildDocTransformerFactory) has a childFilter= option which, when used, solves the issue/bug. But such a childFilter does

Re: Mixing simple and nested docs in same update?

2018-01-30 Thread Tomas Fernandez Lobbe
I believe the problem is that: * BlockJoin queries do not know about your “types”, in the BlockJoin query world, everything that’s not a parent (matches the parentFilter) is a child. * All docs indexed before a parent are considered childs of that doc. That’s why in your first case it considers

Re: Mixing simple and nested docs in same update?

2018-01-30 Thread Jan Høydahl
Pasting the GIST link :-) https://gist.github.com/45640fe3bad696d53ef8a0930a35d163 Anyone knows if this is expected behavior? -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 15. jan. 2018 kl. 14:08 skrev

Re: Mixing simple and nested docs in same update?

2018-01-15 Thread Jan Høydahl
Radio silence… Here is a GIST for easy reproduction. Is this by design? -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 11. jan. 2018 kl. 00:42 skrev Jan Høydahl : > > Hi, > > We index several large nested documents. We found that querying

Mixing simple and nested docs in same update?

2018-01-10 Thread Jan Høydahl
Hi, We index several large nested documents. We found that querying the data behaves differently depending on how the documents are indexed. To reproduce: solr start solr create -c nested # Index one plain document, “friend" and a nested one, “mother” and “daughter”, in same request: curl