commit | a51241e4c94555a10a76cf01507b4d0a5db52542 | [log] [tgz] |
---|---|---|
author | Alan Woodward <romseygeek@apache.org> | Fri Jun 09 11:57:59 2023 +0100 |
committer | GitHub <noreply@github.com> | Fri Jun 09 11:57:59 2023 +0100 |
tree | 3f2ecb59657ace07b54823fba38f489a0d2727b2 | |
parent | 2934899ca67829b4882e52a3264374477308201d [diff] |
Better paging when random reads go backwards (#12357) When reading data from outside the buffer, BufferedIndexInput always resets its buffer to start at the new read position. If we are reading backwards (for example, using an OffHeapFSTStore for a terms dictionary) then this can have the effect of re-reading the same data over and over again. This commit changes BufferedIndexInput to use paging when reading backwards, so that if we ask for a byte that is before the current buffer, we read a block of data of bufferSize that ends at the previous buffer start. Fixes #12356
Apache Lucene is a high-performance, full-featured text search engine library written in Java.
This README file only contains basic setup instructions. For more comprehensive documentation, visit:
gradlew
).We‘ll assume that you know how to get and set up the JDK - if you don’t, then we suggest starting at https://jdk.java.net/ and learning more about Java, before returning to this README.
See Contributing Guide for details.
Bug fixes, improvements and new features are always welcome! Please review the Contributing to Lucene Guide for information on contributing.
#lucene
and #lucene-dev
on freenode.net