[ 
https://issues.apache.org/jira/browse/SOLR-12630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16571925#comment-16571925
 ] 

David Smiley commented on SOLR-12630:
-------------------------------------

The internal {{_ROOT_}} field and other nested doc fields we've been adding are 
only populated for nested documents, which is today equivalent to "block" 
addition – i.e. atomically all at once.  Your proposal implies that somehow 
they would need to be populated when they are provided stand-alone somehow.  
How would that work?

Your claim "currently the only way to query child documents is using BlockJoin" 
is false, I think.  Adding docs in "block" fashion allows BlockJoin queries to 
work, but BlockJoin queries are not required to do all/any queries.  You could 
use JoinQParser if you wanted to.  The _point_ of adding docs in blocks is to 
allow you to use BlockJoin queries which are pretty fast compared to 
JoinQParser equivalents.

Perhaps you mean to convey this idea: it'd be nice if the query method could 
work consistently using either "block" style doc addition or standalone docs (+ 
metadata to express relationships).  Internally somehow it should detect which 
mechanism is most efficient (use BlockJoin if possible).  This sounds hard; I'm 
not sure if this is even what you mean though.

> Query children without using block join
> ---------------------------------------
>
>                 Key: SOLR-12630
>                 URL: https://issues.apache.org/jira/browse/SOLR-12630
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: mosh
>            Priority: Major
>
> Currently work is being put into Solr to support nested document hierarchies, 
> keeping the original relation between parent and child docs 
> ([SOLR-12298|https://issues.apache.org/jira/browse/SOLR-12298], 
> [SOLR-12441|https://issues.apache.org/jira/browse/SOLR-12441]). Currently the 
> only way to query child documents is using BlockJoin. I was thinking perhaps 
> we could introduce a way to query documents that are not indexed in the same 
> block with a different transformer, or perhaps add this feature to the 
> ChildDocTransformer.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to