Solr (5.3.1) doesn't delete orphaned child documents

2016-03-03 Thread naeem.tahir
Hi,    

 I noticed some strange behavior when deleting orphaned child documents in 
Solr 5.3.1. I am indexing nested documents in parent/child hierarchy. When I 
delete a child document whose parent is already deleted previously, child 
document still shows up in search. I am using deleteById() that always returns 
with a success code. Here is an illustration:

A parent P has n (=3) children, say a, b, and c.

    (P)
         |-(a)
         |-(b)
         |-(c)
         
i) Index all four documents with P as parent and a,b,c as children of P.
ii) Search returns 4 documents (P, a, b, c).
iii) Delete P.
iv) Search returns 3 documents (a, b, c)
v) Now delete 'a'
vi) Search still returns 3 documents including 'a'. Same behavior when you 
delete 'b' and 'c' as well.

    Can someone comment if this is the expected behavior?

   Thanks & regards,
    Naeem

Indexing Parent/Child on SolrCloud

2016-02-19 Thread naeem.tahir
Hi,

   We are implementing a solution on SolrCoud involving parent/child documents. 
Had few questions:

1. In a nested document structure does parent and child are always indexed on 
same shard?
2. Are there any limitations on number of child documents in a nested structure.
3. Any other limitations/stumbling blocks we should be aware of while working 
with nested documents on SolrCoud.
   Thanks,
    Naeem