Changing Bits: Apache Lucene™ 5.0.0 is coming!
Read full article from Changing Bits: Apache Lucene™ 5.0.0 is coming!
Stronger index safety
Many of the 5.0.0 changes are focused on providing stronger protection against index corruption.
All file access now uses Java's NIO.2 APIs, giving us better error handling (e.g.,
Files.delete
returns a meaningful exception) along with atomic rename for safer commits, reducing the risk of hideous "your entire index is gone" bugs like this doozie.
Reduced heap usage
An explain API for heap usage
FieldCache
is gone (moved to a dedicated UninvertingReader
in the misc
module). This means when you intend to sort on a field, you should index that field using doc values, which is much faster and less heap consuming than FieldCache
No comments:
Post a Comment