summaryrefslogtreecommitdiff
path: root/core/src/main/java/org/elasticsearch/search/aggregations/metrics/sum
AgeCommit message (Collapse)Author
2017-06-14Add more missing AggregationBuilder getters (#25198)Zachary Tong
* Add more missing AggregationBuilder getters - getMetadata for all aggs - various getters on TermsAggBuilder (without "get" prefix to maintain convention) - Also makes InternalSum's ctor public, to follow suit of other metrics (min/max/avg/etc)
2017-05-10Fix merging conflictsTanguy Leroux
2017-04-19Add parsing for InternalSimpleValue and InternalDerivative (#24162)Christoph Büscher
2017-04-19Merge remote-tracking branch 'origin/master' into feature/client_aggs_parsingTanguy Leroux
# Conflicts: # core/src/main/java/org/elasticsearch/search/DocValueFormat.java # core/src/test/java/org/elasticsearch/search/aggregations/InternalAggregationTestCase.java # core/src/test/java/org/elasticsearch/search/aggregations/metrics/InternalMaxTests.java # core/src/test/java/org/elasticsearch/search/aggregations/metrics/avg/InternalAvgTests.java # core/src/test/java/org/elasticsearch/search/aggregations/metrics/min/InternalMinTests.java
2017-04-18Adding parsing for InternalSumChristoph Büscher
2017-04-18Upgrade to a Lucene 7 snapshot (#24089)Adrien Grand
We want to upgrade to Lucene 7 ahead of time in order to be able to check whether it causes any trouble to Elasticsearch before Lucene 7.0 gets released. From a user perspective, the main benefit of this upgrade is the enhanced support for sparse fields, whose resource consumption is now function of the number of docs that have a value rather than the total number of docs in the index. Some notes about the change: - it includes the deprecation of the `disable_coord` parameter of the `bool` and `common_terms` queries: Lucene has removed support for coord factors - it includes the deprecation of the `index.similarity.base` expert setting, since it was only useful to configure coords and query norms, which have both been removed - two tests have been marked with `@AwaitsFix` because of #23966, which we intend to address after the merge
2017-03-23Use ParseField for aggs CommonFields rather than String (#23717)Luca Cavanna
With this change we remove a TODO from CommonFields. Also this will be useful when parsing aggs response for the high level REST client.
2017-02-06[TEST] Added unit tests for sum aggs.Martijn van Groningen
Relates to #22278
2017-01-10Remove InternalAggregation.Type (#22511)Nik Everett
It is no longer needed. It used to contain a lot of strings used by serialization but those have since been removed. Now it is just another thing to pass around that we don't really need.
2016-12-13Remove `AggregationContext`. (#22124)Adrien Grand
This class is just a wrapper around `SearchContext`, so let's use `SearchContext` directly. The change is mechanical, except the `ValuesSourceConfig` class, where I moved the logic to get a `ValuesSource` given a config.
2016-12-09Start using `ObjectParser` for aggs. (#22048)Adrien Grand
This is an attempt to start moving aggs parsing to `ObjectParser`. There is still A LOT to do, but ObjectParser is way better than the way aggregations parsing works today. For instance in most cases, we reject numbers that are provided as strings, which we are supposed to accept since some client languages (looking at you Perl) cannot make sure to use the appropriate types. Relates to #22009
2016-10-12Remove empty javadoc (#20871)Tanguy Leroux
This commit removes as many as empty javadocs comments my regexp has found
2016-09-06* Removed `script.default_lang` setting and made `painless` the hardcoded ↵Martijn van Groningen
default script language. ** The default script language is now maintained in `Script` class. * Added `script.legacy.default_lang` setting that controls the default language for scripts that are stored inside documents (for example percolator queries). This defaults to groovy. ** Added `QueryParseContext#getDefaultScriptLanguage()` that manages the default scripting language. Returns always `painless`, unless loading query/search request in legacy mode then the returns what is configured in `script.legacy.default_lang` setting. ** In the aggregation parsing code added `ParserContext` that also holds the default scripting language like `QueryParseContext`. Most parser don't have access to `QueryParseContext`. This is for scripts in aggregations. * The `lang` script field is always serialized (toXContent). Closes #20122
2016-08-16Switch aggregation registration for push to pullNik Everett
Adds `getAggregations` to `SearchPlugin` which can be used to register aggregations. Fixup MockNode which wasn't createing MockBigArrays.
2016-07-01Fix order of modifiersTanguy Leroux
2016-07-01Migrate sum, min, and max aggs to NamedWriteableNik Everett
2016-05-19Rename AggregatorBuilder and all of its subclasses toAli Beyad
AggregationBuilder, in keeping consistent with the Java APIs. Closes #18377 Closes #18367
2016-04-19Remove writeAllocationCommand and writeValueFormatNik Everett
Replace with writeNamedWriteable. s/write/read/g
2016-04-19Remove deprecated registration methodsNik Everett
Removes deprecated registration methods from SearchModule and NamedWriteableRegistry and removes the "shims" used to migrate aggregations to the new registration methods. Relates to #17085
2016-04-18Cut max, min, stats, and extended stats aggregations over to registerAggregationNik Everett
and remove their PROTOTYPEs. Relates to #17085
2016-04-07Make MappedFieldType responsible for providing a parser/formatter. #17546Adrien Grand
Aggregations need to perform instanceof calls on MappedFieldType instances in order to know how they should be parsed or formatted. Instead, we should let the field types provide a formatter/parser that can can be used.
2016-03-29Prevents exception being raised when ordering by an aggregation which wasn't ↵Colin Goodheart-Smithe
collected If a terms aggregation was ordered by a metric nested in a single bucket aggregator which did not collect any documents (e.g. a filters aggregation which did not match in that term bucket) an ArrayOutOfBoundsException would be thrown when the ordering code tried to retrieve the value for the metric. This fix fixes all numeric metric aggregators so they return their default value when a bucket ordinal is requested which was not collected. Closes #17225
2016-02-15Moved AggregatorBuilder implementations into their own class filesColin Goodheart-Smithe
Also renamed histogram.AbstractBuilcer to AbstractHistogramBuilder, range.AbstractBuilder to AbstractRangeBuilder and org.elasticsearch.search.aggregations.pipeline.having to org.elasticsearch.search.aggregations.pipeline.bucketselector
2016-02-11Adds validation to the Aggregator Builder implementationsColin Goodheart-Smithe
2016-02-10Made AggregatorFactory fields final and removed AggregationContext from ↵Colin Goodheart-Smithe
createInternal() parameters
2016-02-08Make AggregatorFactory fully immutable by requiring the parent, subFactories ↵Colin Goodheart-Smithe
and metadata in the constructor
2016-02-08Split AggregatorFactory into AggregatorBuilder and AggregatorFactoryColin Goodheart-Smithe
2016-01-26Removes Aggregation Builders in place of AggregatorFactory implementationsColin Goodheart-Smithe
2016-01-14Removes the simple metric builders in place of AggFactory implementationsColin Goodheart-Smithe
2016-01-08Makes the AggregatorFactory and PipelineAggregatorFactory setter methods ↵Colin Goodheart-Smithe
chain able
2015-12-21Aggregations Refactor: Refactor Percentiles and Percentile Ranks AggregationColin Goodheart-Smithe
2015-12-21Aggregations Refactor: Refactor Max, Avg, and Sum AggregationsColin Goodheart-Smithe
2015-12-21Aggregation refactor: make aggregationFactory implement NamedWritableColin Goodheart-Smithe
Also makes AggregatorFactories implement Writable
2015-12-21Refactor ValuesSource to separate Parsing from Factory logicColin Goodheart-Smithe
ValuesSourceConfig is now evaluated in the ValuesSourceAggregatorFactory instead of ValueSourceParser. This means that the ValueSourceParser purely deals with parsing the XContent and the logic requiring access to the mappings etc. on the shard is left to the ValuesSourceAggregatorFactory. This means that, in the future, the parsing logic can be moved to the coordinating node.
2015-07-01Aggregations: Makes ValueFormat and ValueFormatter never nullColin Goodheart-Smithe
This allows a lot of null checks to be removed where we were always falling back to the ValueFormat.RAW anyway. Now the format is set to ValueFormat.RAW when no alternative is suitable. Closes #10594
2015-06-05create core moduleSimon Willnauer