Simon Willnauer
17d34d5c97
Fix FieldDataWeighter generics to accept RamUsage instead of AtomicFieldData
...
The `FieldDataWeighter` allowed to use a concrete subclass of the caches
generic type to be used that causes ClassCastException and also trips the
CirciutBreaker to not be decremented appropriately.
This was tripped by settings randomization also part of this commit.
Closes #6260
2014-05-21 17:50:45 +02:00
Martijn van Groningen
ade1d0ef57
Added global ordinals (unique incremental numbering for terms) to fielddata.
...
Added a terms aggregation implementations that work on global ordinals, which is also the default.
Closes #5672
2014-04-07 11:06:41 +07:00
Simon Willnauer
7bc5ab45bc
Cleanup IndicesFieldDataCache and IndexFieldDataCache
...
This commit adds several asserts and removes possible `null` values
from the `FieldDataCache` implementation.
Closes #5664
2014-04-03 12:50:51 +02:00
Martijn van Groningen
d57ef1e0d6
Removed incorrect comment
2014-04-02 12:14:35 +07:00
Martijn van Groningen
b7451533c8
Added an indices level field data cache listener that always gets invoked and updates indices statistics and services about field data loading and unloading.
...
Moved the circuit breaker memory reducing logic to the IndicesFieldDataCacheListener, so it always reduces the memory used when field data gets unloaded,
this fixes a issue where the circuit breaker didn't get reduced when segments where no shardId could be resolved get cleared up.
Also made sure that exceptions in the percolator service are bubbled up properly.
Closes #5588
2014-04-02 11:55:45 +07:00
Simon Willnauer
ea9e095b57
Encapsulate Operations on SegmentReader in a utils class
...
This commit adds support to extract SegmentReader instances from
FilteredAtomicReader instances to support reader wrapping in
caches as well.
2014-01-13 17:19:13 +01:00
Simon Willnauer
10ec2e948a
Fix ASL Header in source files to reflect s/ElasticSearch/Elasticsearch
...
This commit also removes the license to Shay Banon in favor of soley
Elasticsearch. Thanks Shay for this awesome product you took it far!
Closes #4636
2014-01-07 11:22:01 +01:00
Shay Banon
f465a6b589
field level field data cache should take into account a null listener
...
also, cleanup the onRemoval code
2013-11-20 09:31:19 -08:00
Simon Willnauer
3a34aa735e
Upgrade to Lucene 4.5.1
2013-10-24 18:37:44 +02:00
Shay Banon
a2d72697eb
Expose field level field data statistics
...
closes #2889
2013-04-12 15:51:08 -07:00
Shay Banon
15d7ae5983
FieldData Stats: Add field data stats to indices stats API
...
closes #2870
2013-04-07 18:30:24 -07:00
Shay Banon
a7da27c714
Field Data: Add node
level cache type
...
closes #2722
2013-03-03 19:55:06 +01:00
Shay Banon
e01879a698
add evictions stats to field data
2013-03-03 18:41:17 +01:00
Shay Banon
e8c1180ede
add field data stats
2013-01-24 11:38:18 +01:00
Shay Banon
6b92b592b4
allow to clear by reader the new field data cache
2013-01-22 16:16:32 +01:00
Shay Banon
c67386f644
properly invalidate on core closed reader
2013-01-22 16:16:32 +01:00
Shay Banon
7397007e05
initial commit
2013-01-22 16:16:30 +01:00