Nik Everett
9271c0302f
CONSOLEify some aggs docs
...
Cleans up the example result in `children-aggregation` so that
it matches the example data.
Relates to #18160
2016-10-03 09:22:56 -04:00
Nik Everett
5cff2a046d
Remove most of the need for `// NOTCONSOLE`
...
and be much more stingy about what we consider a console candidate.
* Add `// CONSOLE` to check-running
* Fix version in some snippets
* Mark groovy snippets as groovy
* Fix versions in plugins
* Fix language marker errors
* Fix language parsing in snippets
This adds support for snippets who's language is written like
`[source, txt]` and `["source","js",subs="attributes,callouts"]`.
This also makes language required for snippets which is nice because
then we can be sure we can grep for snippets in a particular language.
2016-09-06 10:32:54 -04:00
Clinton Gormley
de208cf78c
Fied bad asciidoc
2016-08-18 14:08:58 +02:00
Clinton Gormley
31e5e0b17f
Document that pipeline aggs cannot be used for sorting
...
Closes #20037
2016-08-18 13:52:45 +02:00
Adrien Grand
a0818d3b87
Split regular histograms from date histograms. #19551
...
Currently both aggregations really share the same implementation. This commit
splits the implementations so that regular histograms can support decimal
intervals/offsets and compute correct buckets for negative decimal values.
However the response API is still the same. So for intance both regular
histograms and date histograms will produce an
`org.elasticsearch.search.aggregations.bucket.histogram.Histogram`
aggregation.
The optimization to compute an identifier of the rounded value and the
rounded value itself has been removed since it was only used by regular
histograms, which now do the rounding themselves instead of relying on the
Rounding abstraction.
Closes #8082
Closes #4847
2016-08-03 08:39:48 +02:00
Adrien Grand
dcc598c414
Make the heuristic to compute the default shard size less aggressive.
...
The current heuristic to compute a default shard size is pretty aggressive,
it returns `max(10, number_of_shards * size)` as a value for the shard size.
I think making it less aggressive has the benefit that it would reduce the
likelyness of running into OOME when there are many shards (yearly
aggregations with time-based indices can make numbers of shards in the
thousands) and make the use of breadth-first more likely/efficient.
This commit replaces the heuristic with `size * 1.5 + 10`, which is enough
to have good accuracy on zipfian distributions.
2016-07-29 09:59:29 +02:00
Jared McQueen
d97b3fd817
[docs] missing a comma in the terms aggregation example
2016-07-27 12:59:38 -04:00
Leon Weidauer
1297a707da
non-binary gender option in term aggr. example ( #19188 )
...
* non-binary gender option in term aggr. example
* replace gender with music genre for term aggregation docs
2016-07-01 14:59:03 +02:00
Jason Tedor
00356edd33
Clarify time units usage in docs
...
This commit clarifies the distinction between supported time units for
durations and supported time units for durations in the docs.
Relates #19159
2016-06-29 17:02:15 -04:00
Robert Muir
6fc1a22977
cutover some docs to painless
2016-06-27 09:55:16 -04:00
Jim Ferenczi
fb2a48d0f0
Revert "Remove support for sorting terms aggregation by ascending count"
...
This is delayed after alpha4 since Kibana relies on it.
2016-06-17 17:14:01 +02:00
Jim Ferenczi
755721953b
Remove support for sorting terms aggregation by ascending count
...
closes #17614
2016-06-17 15:06:49 +02:00
Glen Smith
5284c5094d
grammar
2016-06-17 10:09:21 +02:00
Jim Ferenczi
ad232aebbe
Set collection mode to breadth_first in the terms aggregation when the cardinality of the field is unknown or smaller than the requested size.
...
closes #9825
2016-06-16 11:33:40 +02:00
Colin Goodheart-Smithe
cfd3356ee3
Remove size 0 options in aggregations
...
This removes the ability to set `size: 0` in the `terms`, `significant_terms` and `geohash_grid` aggregations for the reasons described in https://github.com/elastic/elasticsearch/issues/18838
Closes #18838
2016-06-14 13:07:02 +01:00
Adrien Grand
638da06c1d
Add back support for `ip` range aggregations. #17859
...
This commit adds support for range aggregations on `ip` fields. However it will
only work on 5.x indices.
Closes #17700
2016-05-13 17:22:01 +02:00
Robert Muir
c5532d3df0
add a rest test for this that seems to work, fix the documentation. thanks @s1monw
2016-05-11 16:07:08 -04:00
Jim Ferenczi
052191f2a2
Add the ability to use the breadth_first mode with nested aggregations (such as `top_hits`) which require access to score information.
...
The score is recomputed lazily for each document belonging to a top bucket.
Relates to #9825
2016-05-04 15:35:45 +02:00
Sergii Golubev
434a563fe0
terms-aggregation.asciidoc tiny edit
2016-04-13 16:51:47 -06:00
Sergii Golubev
39b914bd77
histogram-aggregation.asciidoc: tiny edit ( #17706 )
2016-04-13 14:19:05 +02:00
Adrien Grand
1d0239c125
Add a warning about the impact of sorting terms aggregations on the accuracy of doc counts.
2016-04-07 16:57:44 +02:00
Adrien Grand
b42f66c8ac
Document 5.0 mapping changes.
2016-03-22 16:22:58 +01:00
Clinton Gormley
0ed0fea558
Updated link to Joda time zones
2016-03-14 12:24:58 +01:00
Christoph Büscher
ff46303f15
Simplify mock scripts
2016-03-07 15:39:35 +01:00
Christoph Büscher
6b0f63e1a6
Adding `time_zone` parameter to daterange-aggregation docs
2016-03-07 15:38:24 +01:00
Colin Goodheart-Smithe
e546db0753
[DOCS] fix to sampler agg documentation
2016-02-15 13:17:19 +00:00
Colin Goodheart-Smithe
5f489b99bf
fixed docs link error
2016-02-15 12:12:16 +00:00
Colin Goodheart-Smithe
1f760bd1bd
Merge branch 'master' into feature/aggs-refactoring
2016-02-10 12:16:26 +00:00
Dongjoon Hyun
21ea552070
Fix typos in docs.
2016-02-09 02:07:32 -08:00
Colin Goodheart-Smithe
3b35754f59
Merge branch 'master' into feature/aggs-refactoring
...
# Conflicts:
# core/src/test/java/org/elasticsearch/percolator/PercolateDocumentParserTests.java
2016-01-26 13:17:53 +00:00
Clinton Gormley
7cde0d47bc
Merge pull request #16215 from eemp/patch-1
...
Update filters-aggregation.asciidoc
2016-01-26 12:56:43 +01:00
Colin Goodheart-Smithe
cd8320b171
Merge branch 'master' into feature/aggs-refactoring
...
# Conflicts:
# core/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FilterAggregator.java
# core/src/main/java/org/elasticsearch/search/aggregations/bucket/filters/FiltersAggregator.java
# core/src/main/java/org/elasticsearch/search/SearchModule.java
2016-01-25 10:42:20 +00:00
Kevin Adams
768d171f77
Timezone: use forward slash
...
Using a backslash causes errors when querying elasticsearch, but changing the back slash to forward slash on the timezone fixes it.
Closes #16148
2016-01-22 14:26:49 +01:00
Colin Goodheart-Smithe
2c33f78192
Merge branch 'master' into feature/aggs-refactoring
...
# Conflicts:
# core/src/main/java/org/elasticsearch/search/aggregations/bucket/children/ChildrenParser.java
# core/src/main/java/org/elasticsearch/search/aggregations/support/ValuesSourceParser.java
# test/framework/src/main/java/org/elasticsearch/test/TestSearchContext.java
2016-01-06 09:35:53 +00:00
Eugene Pirogov
d48af9a155
Fix indent in example
...
Previously it would look like if `warnings` key is nested under `errors`.
2016-01-05 14:41:09 +01:00
Colin Goodheart-Smithe
1aea0faa86
Aggregations Refactor: Refactor Sampler Aggregation
2015-12-21 09:35:46 +00:00
Clinton Gormley
3e7201ef63
Merge pull request #14096 from speedplane/patch-2
...
Fixed a typo ("when when")
2015-10-13 21:17:09 +02:00
Alex
4077a322c5
Docs: Fix typo - datehistogram
...
date_histogram in place of datehistogram
Closes #13886
2015-10-06 19:22:21 +02:00
Taehee Kim
45e0ccd274
Fix typo
2015-09-25 06:42:21 +09:00
Adrien Grand
86f1b07df0
Docs: Remove docs for the `filtered`, `and`, `or` and `(f)query` queries.
2015-09-11 11:00:54 +02:00
Clinton Gormley
8aba6ce93a
Docs: Improved the date histogram docs for time_zone and offset
2015-09-07 19:54:00 +02:00
Sylvain Zimmer
c2f774ac57
Warning in the docs for negative histogram values
...
As requested in https://github.com/elastic/elasticsearch/issues/8082#issuecomment-127962374
2015-08-07 13:10:03 +02:00
Clinton Gormley
ac2b8951c6
Docs: Mapping docs completely rewritten for 2.0
2015-08-06 17:24:51 +02:00
Sylvain Zimmer
12a2db5417
Fix typo in docs
2015-07-31 19:11:04 -04:00
Ryan Ernst
dba42a83e2
Docs: Update time_zone specification
...
closes #12317
2015-07-21 00:22:53 -07:00
Colin Goodheart-Smithe
e366d0380d
Aggregations: Adds other bucket to filters aggregation
...
The filters aggregation now has an option to add an 'other' bucket which will, when turned on, contain all documents which do not match any of the defined filters. There is also an option to change the name of the 'other' bucket from the default of '_other_'
Closes #11289
2015-07-01 10:44:04 +01:00
William Li
2be3fe31a4
Docs: Update filter-aggregation.asciidoc
...
Closes #11782
2015-07-01 10:17:45 +02:00
Christoph Büscher
f5f73259e4
Docs: Update Joda URLs in documentation.
2015-06-26 10:23:02 +02:00
Clinton Gormley
37eae789a0
Merge pull request #11801 from golubev/patch-6
...
fix json syntax in filters-aggregation.asciidoc
2015-06-23 20:02:04 +02:00
caldwecr
1ac728d22b
Docs: Update filter-aggregation.asciidoc
...
Replace the previous example which leveraged a range filter, which causes unnecessary confusion about when to use a range filter to create a single bucket or a range aggregation with exactly one member in ranges.
Closes #11704
2015-06-19 12:24:42 +02:00