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

   @mikemccand @jpountz thanks for your ideas. I'd love to flash this out more 
before we add anything we write to the index. Today we'd only use this for 
sorting but if that field can be useful to speed up or improve searching I am 
happy to extend this further. 
   My suggestion here is to move the parentField away from sort to IWC and if 
you configure it we automatically add this field in DWPT to every parent 
document. We can then also check if it's set and a sort is used and fail if a 
block is indexed and it's unset. That would allow us to gradually add this in 
9.x and require it for sorting in 10? That way I can also go ahead and set the 
number of children as the value for that field. WDYT?
   
   @msokolov there is no reduction of features here. you can do all the things 
you have done before except of re-sorting the do cuments within a block. This 
is a API guarantee that we try to fix here. You can still add another field to 
each doc specifying which hierarchy level it belongs to and then do `books -> 
chapters -> paragraphs` whatever relations to that. All we try to prevent is 
that the API guarantee is broken up due to a sort etc. Hope that helps?


-- 
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