commit | e7b5e6bdb23419d4e8cb35a48857e9368c7e31f8 | [log] [tgz] |
---|---|---|
author | Nhat Nguyen <nhat.nguyen@elastic.co> | Mon Feb 20 17:03:05 2023 -0800 |
committer | GitHub <noreply@github.com> | Mon Feb 20 17:03:05 2023 -0800 |
tree | 6dbb3ce37a9a48d541b94c9e438d8df71e733ff7 | |
parent | 90e3d8aeb1b1f77166c38fe0fa6320d632ce2640 [diff] |
Ensure caching all leaves from the upper tier (#12147) This change adjusts the cache policy to ensure that all segments in the max tier to be cached. Before, we cache segments that have more than 3% of the total documents in the index; now cache segments have more than half of the average documents per leave of the index. Closes #12140
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. Lucene runs with Java 11 or later.
Lucene uses Gradle for build control. Gradle is itself Java-based and may be incompatible with newer Java versions; you can still build and test Lucene with these Java releases, see jvms.txt for more information.
NOTE: Lucene changed from Apache Ant to Gradle as of release 9.0. Prior releases still use Apache Ant.
You can clone the source code from GitHub:
https://github.com/apache/lucene
or get Lucene source archives for a particular release from:
https://lucene.apache.org/core/downloads.html
Download the source archive and uncompress it into a directory of your choice.
Run “./gradlew help”, this will show the main tasks that can be executed to show help sub-topics.
If you want to build Lucene, type:
./gradlew assemble
NOTE: DO NOT use the gradle
command that is perhaps installed on your machine. This may result in using a different gradle version than the project requires and this is known to lead to very cryptic errors. The “gradle wrapper” (gradlew script) does everything required to build the project from scratch: it downloads the correct version of gradle, sets up sane local configurations and is tested on multiple environments.
The first time you run gradlew, it will create a file “gradle.properties” that contains machine-specific settings. Normally you can use this file as-is, but it can be modified if necessary.
./gradlew check
will assemble Lucene and run all validation tasks (including tests).
./gradlew help
will print a list of help guides that introduce and explain various parts of the build system, including typical workflow tasks.
If you want to just build the documentation, type:
./gradlew documentation
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