OpenSearch/docs/reference/search
Martijn van Groningen 5705537ecf Added field stats api
The field stats api returns field level statistics such as lowest, highest values and number of documents that have at least one value for a field.

An api like this can be useful to explore a data set you don't know much about. For example you can figure at with the lowest and highest response times are, so that you can create a histogram or range aggregation with sane settings.

This api doesn't run a search to figure this statistics out, but rather use the Lucene index look these statics up (using Terms class in Lucene). So finding out these stats for fields is cheap and quick.

The min/max values are based on the type of the field. So for a numeric field min/max are numbers and date field the min/max date and other fields the min/max are term based.

Closes #10523
2015-04-23 08:52:34 +02:00
..
aggregations New feature - Sampler aggregation used to limit any nested aggregations' processing to a sample of the top-scoring documents. 2015-04-21 10:22:05 +01:00
request Docs: Removed some unused callout from the scroll docs 2015-04-22 12:49:06 +02:00
suggesters Mappings: Remove `index_analyzer` setting to simplify analyzer logic 2015-01-28 13:43:15 -08:00
aggregations.asciidoc Search: Remove the `count` search type. 2015-03-31 11:31:49 +02:00
count.asciidoc Docs: Use the new experimental annotation. 2015-02-05 15:29:45 +01:00
exists.asciidoc Search Exists API: Checks if any matching documents exist for a given query 2014-07-31 15:42:30 -04:00
explain.asciidoc Revert "[QUERY] Remove lowercase_expanded_terms and locale options" 2015-03-13 13:51:44 -06:00
facets.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
field-stats.asciidoc Added field stats api 2015-04-23 08:52:34 +02:00
more-like-this.asciidoc Added the ability to include the queried document for More Like This API. 2014-05-09 12:59:39 +02:00
multi-search.asciidoc Search: Remove the `count` search type. 2015-03-31 11:31:49 +02:00
percolate.asciidoc [DOCS] Fix multi percolate response sample in percolate.asciidoc 2015-03-30 11:32:41 +02:00
request-body.asciidoc Search: Remove the `count` search type. 2015-03-31 11:31:49 +02:00
search-shards.asciidoc Docs: Fixed path to search-shards 2014-07-26 15:05:53 +02:00
search-template.asciidoc Docs: Updated version annotations in master 2015-04-09 14:50:11 +02:00
search.asciidoc [DOCS] Corrected syntax error in search curl cmd 2014-11-12 17:21:19 +01:00
suggesters.asciidoc Search: Remove the `count` search type. 2015-03-31 11:31:49 +02:00
uri-request.asciidoc Search: Remove the `count` search type. 2015-03-31 11:31:49 +02:00
validate.asciidoc Validate API: support for verbose explanation of succesfully validated queries 2015-04-13 19:17:58 +02:00