OpenSearch/dev-tools
Adrien Grand b72f27a410 Core: Cut over to the Lucene filter cache.
This removes Elasticsearch's filter cache and uses Lucene's instead. It has some
implications:
 - custom cache keys (`_cache_key`) are unsupported
 - decisions are made internally and can't be overridden by users ('_cache`)
 - not only filters can be cached but also all queries that do not need scores
 - parent/child queries can now be cached, however cached entries are only
   valid for the current top-level reader so in practice it will likely only
   be used on read-only indices
 - the cache deduplicates filters, which plays nicer with large keys (eg. `terms`)
 - better stats: we already had ram usage and evictions, but now also hit count,
   miss count, lookup count, number of cached doc id sets and current number of
   doc id sets in the cache
 - dynamically changing the filter cache size is not supported anymore

Internally, an important change is that it removes the NoCacheFilter infrastructure
in favour of making Query.rewrite specializing the query for the current reader so
that it will only be cached on this reader (look for IndexCacheableQuery).

Note that consuming filters with the query API (createWeight/scorer) instead of
the filter API (getDocIdSet) is important for parent/child queries because
otherwise a QueryWrapperFilter(ParentQuery) would run the wrapped query per
segment while relations might be cross segments.
2015-05-04 09:02:15 +02:00
..
forbidden Core: Cut over to the Lucene filter cache. 2015-05-04 09:02:15 +02:00
pmd Added static analysis profile to pom.xml 2014-03-13 12:23:07 -07:00
ElasticSearch.launch [EXEC] Remove reduced stack size 2015-01-06 17:35:45 +01:00
build_randomization.rb [BUILD] Randomly enable AggressiveOpts in builds 2014-09-09 21:58:37 +02:00
build_release.py Release: Fix build repositories script 2015-04-28 10:04:30 +02:00
build_repositories.sh Release: Fix build repositories script 2015-04-28 10:04:30 +02:00
client_tests_urls.prop [BUILD] Switch 1x to JDK7 download 2014-03-31 19:28:27 -07:00
create_bwc_index.py Core: add only_ancient_segments to upgrade API, so only segments with an old Lucene version are upgraded 2015-04-16 05:24:33 -04:00
create_bwc_index_with_some_ancient_segments.py Core: add only_ancient_segments to upgrade API, so only segments with an old Lucene version are upgraded 2015-04-16 05:24:33 -04:00
download-s3.py [TOOLS] Added simple S3 Download tool based on boto 2014-06-02 13:35:21 +02:00
elasticsearch_license_header.txt Added licene-maven-plugin to build 2014-01-10 22:04:48 +01:00
es_release_notes.pl Changed the release notes script to use the category labels instead of title prefix 2015-03-19 16:52:47 +01:00
extract_party_license.rb typo fixes - https://github.com/vlajos/misspell_fixer 2014-11-08 18:55:57 +01:00
get-bwc-version.py Tests: improve back compat tests by adding delete-by-query in the transaction log on upgrade 2015-03-26 10:12:22 -04:00
license_header_definition.xml Build: Changed license header definition file xml encoding to UTF-8 2014-08-18 10:55:32 +02:00
upgrade-tests.py [TEST] remove needless script settings from upgrade tests script 2015-03-26 19:56:55 +01:00
upload-s3.py Fix ASL Header in source files to reflect s/ElasticSearch/Elasticsearch 2014-01-07 11:22:01 +01:00