Commit graph

7664 commits

Author SHA1 Message Date
Nhat Nguyen
879279c9b4
Introduce point in time APIs in x-pack basic (#61062)
This commit introduces a new API that manages point-in-times in x-pack 
basic. Elasticsearch pit (point in time) is a lightweight view into the
state of the data as it existed when initiated. A search request by
default executes against the most recent point in time. In some cases,
it is preferred to perform multiple search requests using the same point
in time. For example, if refreshes happen between search_after requests,
then the results of those requests might not be consistent as changes
happening between searches are only visible to the more recent point in
time.

A point in time must be opened before being used in search requests. The 
`keep_alive` parameter tells Elasticsearch how long it should keep a
point in time around.

```
POST /my_index/_pit?keep_alive=1m
```

The response from the above request includes a `id`, which should be 
passed to the `id` of the `pit` parameter of search requests.

```
POST /_search
{
    "query": {
        "match" : {
            "title" : "elasticsearch"
        }
    },
    "pit": {
            "id":  "46ToAwMDaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQNpZHkFdXVpZDIrBm5vZGVfMwAAAAAAAAAAKgFjA2lkeQV1dWlkMioGbm9kZV8yAAAAAAAAAAAMAWICBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==",
            "keep_alive": "1m"
    }
}
```

Point-in-times are automatically closed when the `keep_alive` is 
elapsed. However, keeping point-in-times has a cost; hence,
point-in-times should be closed as soon as they are no longer used in
search requests.

```
DELETE /_pit
{
    "id" : "46ToAwMDaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQNpZHkFdXVpZDIrBm5vZGVfMwAAAAAAAAAAKgFjA2lkeQV1dWlkMioGbm9kZV8yAAAAAAAAAAAMAWIBBXV1aWQyAAA="
}
```

#### Notable works in this change:

- Move the search state to the coordinating node: #52741
- Allow searches with a specific reader context: #53989
- Add the ability to acquire readers in IndexShard: #54966

Relates #46523
Relates #26472

Co-authored-by: Jim Ferenczi <jimczi@apache.org>
2020-08-24 20:24:35 -04:00
gadekishore
fc50e17753
updated shard limit doc (#56496)
* updated shard limit doc

As the documentation was not so clear. I have updated saying this limit includes open indices with unassigned primaries and replicas count towards the limit.

* [DOCS] Incorporated edits.

Co-authored-by: Deb Adair <debadair@elastic.co>
2020-08-24 16:41:04 -07:00
James Rodewig
d03012fbd1
[DOCS] Fix typo in profile API docs (#61445) (#61502)
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: shashikumarec088 <shashikumarec088@gmail.com>
2020-08-24 15:30:25 -04:00
James Rodewig
a7d4e8b148
[DOCS] Remove collapsible sections in EQL fn docs (#61498) 2020-08-24 14:19:29 -04:00
Dan Hermann
0ba8d82c1b
[DOCS] Configurable output format for date processor (#61440) 2020-08-24 11:07:13 -05:00
Benjamin Trent
1b34c88d56
[ML] adding docs + hlrc for data frame analysis feature_processors (#61149)
Adds HLRC and some docs for the new feature_processors field in Data frame analytics.

Co-authored-by: Przemysław Witek <przemyslaw.witek@elastic.co>
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2020-08-24 12:00:44 -04:00
James Rodewig
fdc4e83050
[DOCS] Combine Search your data files (#61477)
No-op changes to:

* Move `Search your data` source files into the same directory
* Rename `Search your data` source files based on page ID
* Remove unneeded includes
* Remove the `Request` dir
2020-08-24 11:22:56 -04:00
James Rodewig
c688cb6bfd
[DOCS] Fix hyphenation for "time series" (#61472) 2020-08-24 10:34:41 -04:00
Lisa Cawley
e12d6f168c
[DOCS] Document static machine learning settings (#61382) 2020-08-24 07:29:25 -07:00
James Rodewig
c3f40a856e
[DOCS] Fix ingest script compilation rate and cache size (#61468) 2020-08-24 10:26:38 -04:00
James Rodewig
bfae8c7633
[DOCS] Fix typo in CCR Put Follow API docs (#61392) (#61471)
Co-authored-by: Mark Laney <mark1@elastic.co>
2020-08-24 09:46:32 -04:00
James Rodewig
72539e032c
[DOCS] Note the cluster settings API can override elasticsearch.yml (#61394)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2020-08-24 08:42:45 -04:00
James Rodewig
d46931840b
[DOCS] Prune Search your data content (#61303)
Changes:
* Removes narrative around URI searches. These aren't commonly used in production. The `q` param is already covered in the search API docs: https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html#search-api-query-params-q
* Adds a common options section that highlights narrative docs for query DSL, aggregations, multi-index search, search fields, pagination, sorting, and async search.
* Adds a `Search shard routing` page. Moves narrative docs for adaptive replica selection, preference, routing , and shard limits to that section.
* Moves search timeout and cancellation content to the `Search your data` page.
* Creates a `Search multiple data streams and indices` page. Moves related narrative docs for multi-target syntax searches and `indices_boost` to that page.
* Removes narrative examples for the `search_type` parameters. Moves documentation for this parameter to the search API docs.
2020-08-24 08:38:20 -04:00
Lisa Cawley
ec7939364b
[DOCS] Document static dynamic transform settings (#61384) 2020-08-21 13:02:29 -07:00
James Rodewig
164798008c
[DOCS] Document xpack.graph.enabled setting (#60073) 2020-08-21 12:37:05 -04:00
James Rodewig
751798f95f [DOCS] Fix indentation in wildcard type docs 2020-08-21 12:29:06 -04:00
jessepeixoto
9db974aed7
[DOCS] Fix query example for wildcard datatype (#61398) 2020-08-21 12:24:21 -04:00
Nhat Nguyen
2a3a8dd296 Fix anchor doc for msearch cancellation paragraph
Relates #61418
2020-08-21 12:11:00 -04:00
James Rodewig
c21930e4ce
[DOCS] Remove URI search examples from API reference (#61423) 2020-08-21 10:57:35 -04:00
Nhat Nguyen
35ccd06918
Add cancellation doc for multi search (#61418)
Relates #61337
2020-08-21 10:10:05 -04:00
James Rodewig
a4b8079c0a
[DOCS] Fix ingest processor TOC sort (#61412) 2020-08-21 08:44:59 -04:00
James Rodewig
bccd58b2f1
[DOCS] Fix field def for join processor (#61395) 2020-08-21 08:35:56 -04:00
Ryan Ernst
fc9644dc5c
Add note about negative epoch times (#61379)
This commit adds a reminder to date type documentation that negative
epoch times are not supported.

relates #40983
2020-08-20 13:51:57 -07:00
Przemyslaw Gomulka
a3a7ae77fa
[doc] joda migration guide to version 8 (#60506)
indices created in v6 and not migrated earlier to java-time have to be
updated before upgrading to v8
closes #60374
2020-08-20 16:01:42 +02:00
James Rodewig
77bb7320dd
[DOCS] Fix EQL threat detection example (#61367) 2020-08-20 09:55:49 -04:00
Adam Locke
186feaa437
Adding ignore_unavailable param. (#61368) 2020-08-20 09:39:25 -04:00
James Rodewig
2a49ba3252
[DOCS] Document empty string boolean value as false (#61341) 2020-08-19 12:56:57 -04:00
James Rodewig
8359232c45
[DOCS] Document dynamic circuit breaker settings (#61334) 2020-08-19 10:58:04 -04:00
Dan Hermann
9397510778
[DOCS] Update tie_breaker defaults for bool_prefix and most_fields query types (#61112) 2020-08-19 07:55:54 -05:00
James Rodewig
e0b5e576b5
[DOCS] Reorder ES TOC (#61231) 2020-08-19 08:26:51 -04:00
István Zoltán Szabó
8da6bba0fc
[DOCS] Adds example to the inference aggregation description (#61290) 2020-08-19 11:20:42 +02:00
Andrei Stefan
d54957d61f
EQL: Return sequence join keys in the original type (#61268) 2020-08-18 18:20:43 +03:00
Nik Everett
cebd5d47e2
Redo experimental tag on vwh (#61065)
The docs didn't have the standard experimental text. This adds it.
2020-08-18 10:00:54 -04:00
István Zoltán Szabó
d089709be9
[DOCS] Clarifies node.roles settings (#61266) 2020-08-18 15:56:41 +02:00
István Zoltán Szabó
9fdf6e6e90
[DOCS] Replaces transform.node with node.roles: [ transform ] in transforms settings. (#61267) 2020-08-18 15:45:34 +02:00
István Zoltán Szabó
f8e572fb54
[DOCS] Replaces ml.node with node.roles: [ ml ] in ML settings (#61017) 2020-08-18 11:23:13 +02:00
Adam Locke
610a47c792
[DOCS] Update CCR docs to focus on Kibana (#60555)
* First crack at rewriting the CCR introduction.

* Emphasizing Kibana in configuring CCR (part one).

* Many more edits, plus new files.

* Fixing test case.

* Removing overview page and consolidating that information in the main page.

* Adding redirects for moved and deleted pages.

* Removing, consolidating, and adding redirects.

* Fixing duplicate ID in redirects and removing outdated reference.

* Adding test case and steps for recreating a follower index.

* Adding steps for managing CCR tasks in Kibana.

* Adding tasks for managing auto-follow patterns.

* Fixing glossary link.

* Fixing glossary link, again.

* Updating the upgrade information and other stuff.

* Apply suggestions from code review

* Incorporating review feedback.

* Adding more edits.

* Fixing link reference.

* Adding use cases for #59812.

* Incorporating feedback from reviewers.

* Apply suggestions from code review

* Incorporating more review comments.

* Condensing some of the steps for accessing Kibana.

* Incorporating small changes from reviewers.

Co-authored-by: debadair <debadair@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 15:36:54 -04:00
Leaf-Lin
acfdbb4c98 [DOCS] Update configuring-metricbeat.asciidoc (#60857)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2020-08-17 10:25:53 -07:00
James Rodewig
456c37b186
[DOCS] Add usage tips to top_hits agg (#61215) 2020-08-17 12:42:04 -04:00
James Rodewig
cd6304ae6b
[DOCS] Add admon for built-in index templates (#61063)
Adds an important admonition for the built-in `metrics-*-*` and `logs-*-*` index
templates.

Updates several put index template snippets to include a priority.
2020-08-17 11:37:08 -04:00
Adam Locke
fdc867e395
[DOCS] Update info about geo_shape bounding boxes (#61214)
* Adding information about geo_shape bounding boxes.

* Fixing cross link and incorporating review feedback.
2020-08-17 11:07:18 -04:00
István Zoltán Szabó
dd5c5e0c58
[DOCS] Adds clarification to node roles (#61206) 2020-08-17 15:51:25 +02:00
James Rodewig
a94e5cb7c4
[DOCS] Replace Wikipedia links with attribute (#61171) 2020-08-17 09:44:24 -04:00
James Rodewig
39f92f2a02
[DOCS] Fix typo in suggester docs (#61077) (#61204)
Co-authored-by: Arash Layeghi <arashlayeghi57@gmail.com>
2020-08-17 09:14:37 -04:00
Bogdan Pintea
fb6baa85aa
SQL: Update documentation on Tableau integration (#60890)
* Update docs on Tableau Desktop integration

Update the docs on how to integrate with Tableau Desktop, now using the
dedicated connector in conjunction with the JDBC driver.

* Add docs for connecting with Tableau Server

Add the steps required to connecto to Elasticsearch for Tableau Server.

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2020-08-17 12:10:15 +02:00
James Rodewig
0f256948a5 [DOCS] Fix link in similarity module docs 2020-08-14 18:30:44 -04:00
James Rodewig
36f02c7869 [DOCS] Reword in EQL threat detection example 2020-08-14 15:50:31 -04:00
James Rodewig
5827d09ba6
[DOCS] Add xref to multiplexer token filter docs (#60431) (#61170)
Co-authored-by: paiboon auengkongkatong <paiboon15721@gmail.com>
2020-08-14 15:10:33 -04:00
Nicole Albee
8d60bfb52d
[DOCS] Update ingest processor snippet for ECS (#61128) 2020-08-14 14:06:24 -04:00
James Rodewig
46c438f16b [DOCS] Reword EQL example 2020-08-14 13:24:05 -04:00