You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "HoustonPutman (via GitHub)" <gi...@apache.org> on 2025/12/11 00:34:45 UTC

[PR] ExistableDirectoryReader should not cover-up singletons [lucene]

HoustonPutman opened a new pull request, #15498:
URL: https://github.com/apache/lucene/pull/15498

   ### Description
   
   Currently using the `ExitableDirectoryReader` will render some optimizations for Singleton Numeric/SortedDocValues useless since it covers up whether the returned `SortedSetDocValues` or `SortedNumericDocValues` are singletons.
   
   The fix is to check if they are singletons, and if so then filter the unwrapped singleton and then re-wrap it.
   


-- 
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-unsubscribe@lucene.apache.org

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


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


Re: [PR] ExitableDirectoryReader should not cover-up singletons [lucene]

Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman merged PR #15498:
URL: https://github.com/apache/lucene/pull/15498


-- 
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-unsubscribe@lucene.apache.org

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


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


Re: [PR] ExitableDirectoryReader should not cover-up singletons [lucene]

Posted by "HoustonPutman (via GitHub)" <gi...@apache.org>.
HoustonPutman commented on PR #15498:
URL: https://github.com/apache/lucene/pull/15498#issuecomment-3643361726

   I actually think this was my mistake, the wrapping/unwrapping is done in DocValues after fetching from the leaf reader. So this is likely unnecessary.


-- 
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-unsubscribe@lucene.apache.org

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


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