mikemccand commented on PR #12829:
URL: https://github.com/apache/lucene/pull/12829#issuecomment-1827825175

   > using a doc-value field where only parents documents have a value for the 
field, and the value must be the number of child documents that the parent has
   
   This is a neat idea too -- would this maybe make completing the join at 
search time more efficient?  Today we scan for the next set bit, but I guess 
with this approach, we'd still scan for the next `NumericDocValues` that is 
set, and then see the child count, but that would be sort of redundant (we 
could still subtract docids to get the number of children)?  Also, I'm not sure 
how the nested case would be supported (same as the current PR's approach too).
   
   > This makes me wonder if Lucene could be adding this doc value field for 
root documents automatically, similarly to what it is doing for soft deletes? 
(Possibly in a follow-up PR)
   
   This is a nice idea too, but I think we'd still need user input to give us a 
free field name to use for this purpose.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to