Misc extensions of the Document/Field API.
Misc index tools and index support.
Miscellaneous index tools.
Misc search implementations.
Misc similarity implementations.
Misc Directory implementations.
Memory Tracker interface which allows defining custom collector level memory trackers
Misc FST classes.
NOTE: This uses C++ sources (accessible via JNI), which you'll have to compile on your platform.
NativeUnixDirectory is a Directory implementation that bypasses the
OS's buffer cache (using direct IO) for any IndexInput and IndexOutput
used during merging of segments larger than a specified size (default
10 MB). This avoids evicting hot pages that are still in-use for
searching, keeping search more responsive while large merges run.
See this blog post for details. Steps to build:
NativePosixUtil.cpp/java also expose access to the posix_madvise, madvise, posix_fadvise functions, which are somewhat more cross platform than O_DIRECT, however, in testing (see above link), these APIs did not seem to help prevent buffer cache eviction.
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.