Commit graph

7846 commits

Author SHA1 Message Date
markharwood
bac6bd07d0
Search - make term/prefix/wildcard/regex query parsing more lenient (#63926) (#63981)
* Remove errors when case_insensitive flag set to false

Closes #63893
2020-10-21 11:51:10 +01:00
Benjamin Trent
b9dc522cb4
[7.x] [ML] adding new flag exclude_generated that removes generated fields in GET config APIs (#63899)(#63092) (#63177)
* [ML] adding for_export flag for ml plugin GET resource APIs (#63092)

This adds the new `for_export` flag to the following APIs:

- GET _ml/anomaly_detection/<job_id>
- GET _ml/datafeeds/<datafeed_id>
- GET _ml/data_frame/analytics/<analytics_id>

The flag is designed for cloning or exporting configuration objects to later be put into the same cluster or a separate cluster.

The following fields are not returned in the objects:

- any field that is not user settable (e.g. version, create_time)
- any field that is a calculated default value (e.g. datafeed chunking_config)
- any field that would effectively require changing to be of use (e.g. datafeed job_id)
- any field that is automatically set via another Elastic stack process (e.g. anomaly job custom_settings.created_by)

closes https://github.com/elastic/elasticsearch/issues/63055

* [ML] adding new flag exclude_generated that removes generated fields in GET config APIs (#63899)

When exporting and cloning ml configurations in a cluster it can be
frustrating to remove all the fields that were generated by
the plugin. Especially as the number of these fields change
from version to version.

This flag, exclude_generated, allows the GET config APIs to return
configurations with these generated fields removed.

APIs supporting this flag:
- GET _ml/anomaly_detection/<job_id>
- GET _ml/datafeeds/<datafeed_id>
- GET _ml/data_frame/analytics/<analytics_id>

The following fields are not returned in the objects:

- any field that is not user settable (e.g. version, create_time)
- any field that is a calculated default value (e.g. datafeed chunking_config)
- any field that is automatically set via another Elastic stack process (e.g. anomaly job custom_settings.created_by)

relates to #63055
2020-10-20 12:42:52 -04:00
Benjamin Trent
b92cbcd41a
[Transform] add new exclude_generated flag to GET transform (#63093) (#63947)
This adds a new flag `exclude_generated` for GET transform API.

This flag is useful for when a transform needs to be cloned within a cluster or exported/imported between clusters.

It removes certain fields that are not able to be set via the PUT api (e.g. version, create_time).

relates https://github.com/elastic/elasticsearch/issues/63055
2020-10-20 12:38:41 -04:00
Adam Locke
f357c733be
Move clone snapshot API page. (#63902) (#63935) 2020-10-20 09:03:44 -04:00
Dimitris Athanasiou
2bd133c736
[7.x][ML] Rename evaluation metric result fields to value (#63809) (#63921)
Renames data frame analytics _evaluate API results as follows:

  - per class accuracy renamed from `accuracy` to `value`
  - per class precision renamed from `precision` to `value`
  - per class recall renamed from `recall` to `value`
  - auc_roc `score` renamed to `value` for both outlier detection and classification

Backport of #63809
2020-10-20 14:16:44 +03:00
James Rodewig
62d8b13025 [DOCS] Fix typo 2020-10-19 14:44:28 -04:00
Igor Motov
5ebe90daa0
Add value_count mode to rate agg (#63687) (#63847)
Adds a new value count mode to the rate aggregation.

Closes #63575
2020-10-19 13:04:38 -04:00
Adam Locke
1fa232eb2a
[DOCS] [7.x] Combining important config settings into a single page (#63849) (#63884)
* [DOCS] Combining important config settings into a single page (#63849)

* Combining important config settings into a single page.

* Updating ids for two pages causing link errors and implementing redirects.

* Updating links to use IDs instead of xrefs.
2020-10-19 12:59:31 -04:00
James Rodewig
4da10633c6
[DOCS] EQL: Update allow_no_indices default (#63748) (#63890)
Co-authored-by: Adam Locke <adam.locke@elastic.co>
2020-10-19 12:31:12 -04:00
Aref Razavi
6f7d0d7018 Remove useless parentheses in bucket_key formula (#63868) 2020-10-19 11:53:09 +02:00
David Roberts
076ddbf7e1 [ML] Change docs test mute comment (#63866)
The original comment mentioned issue #48583, but issue #48941
is specifically open for this mute.  However, this is
inappropriate, as the underlying reason the test cannot be
unmuted is the same as for all the other tests skipped with the
comment "Kibana sample data": issues #51572, #51576 and #51678.

Closes #48941
2020-10-19 10:27:52 +01:00
István Zoltán Szabó
f0addee100
[DOCS] Clarifies destination index mappings for Transforms. (#63794) (#63803) 2020-10-19 10:02:50 +02:00
Julie Tibshirani
76e5c371d6 Mark the search 'fields' option as beta. (#63699)
We've identified two important enhancements that may affect the API. We expect
any API changes from these enhancements to be minor, but want to leave open the
possibility for small breaks. For example, we may end up returning unmapped
fields by default, or omitting nested fields from the root hit. The impact to
users should be quite small.

We're tracking the issues we need to resolve before removing the 'beta' label
here: #60985.
2020-10-18 13:41:49 -07:00
Jay Greenberg
804bd1c277 [DOCS] Add monitoring note (#61793) 2020-10-16 13:41:18 -07:00
James Rodewig
a525a97ce8
[DOCS] Remove 7.9.2 coming tags (#62872) (#63829)
Removes coming tags from 7.9.2 Release Notes.

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-10-16 12:32:39 -04:00
James Rodewig
78404423c2
Release notes for 7.9.2 (#62664) (#63826)
Co-authored-by: Dan Hermann <danhermann@users.noreply.github.com>
2020-10-16 12:18:22 -04:00
James Rodewig
11d79377b5
[DOCS] Document discovery.seed_hosts only supports YAML sequences and arrays (#63746) (#63775) 2020-10-15 16:56:40 -04:00
Andrei Dan
1ede4b332e
Update 7.10 release notes after respin (#63725)
Adds PRs diff to the release notes.
2020-10-15 17:14:50 +01:00
James Rodewig
5164eb9850
[DOCS] Clarifies the effect of per-field boosting (#63733) (#63743)
The original description of per-field boosting is incorrect. Boosting a
field does not imply that it is more important relative to other fields.
It simply means that the score is multiplied by the supplied boost
value. Due to the differences in each field's term and document
statistics, it's not possible to imply relative importance of fields
based on the per-field boost value alone.

Co-authored-by: Josh Devins <josh.devins@elastic.co>
2020-10-15 09:44:41 -04:00
James Rodewig
acc311ee20
[DOCS] Replace xref with external link (#63736) (#63737) 2020-10-15 08:47:58 -04:00
Andrei Dan
d6bf179730
Docs: sync breaking changes from release notes (#63479) (#63713)
This syncs breaking changes from release notes

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
(cherry picked from commit 2cc0ccb110)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
2020-10-15 09:26:38 +01:00
Andrei Dan
72283cd084
Add release notes for 7.10.0 (#63460) (#63712)
This adds the release notes for 7.10.0

Co-authored-by: David Roberts <dave.roberts@elastic.co>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
(cherry picked from commit e011d0328b)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
2020-10-15 09:26:13 +01:00
Hendrik Muhs
860e03aab6 [Transform] add support for "missing" aggregation (#63651)
add support for the missing (bucket) aggregation (counts docs with a configured missing field value)
in transform. The output is mapped to name:count, the mapping type is long.
2020-10-15 08:42:48 +02:00
Christoph Büscher
6c99ce70b6 [Docs] Correct default scroll_size for update by query (#63656)
The current _update_by_query documentation mentions a scroll_size default of 100 and later another default of 1000.
We use the default of 1000 defined in AbstractBulkByScrollRequest and this PR changes the documentation accordingly.

Closes #63637
2020-10-14 16:43:12 +02:00
James Rodewig
5f43138180
[DOCS] EQL: Remove match fn (#63271) (#63676) 2020-10-14 10:10:40 -04:00
James Rodewig
cae63568ee [DOCS] Reword EQL intro 2020-10-14 10:03:05 -04:00
James Rodewig
900594b6cf
[DOCS] Update ignore_unavailable default for EQL search API (#63210) (#63673) 2020-10-14 09:56:39 -04:00
James Rodewig
7346747b44
[DOCS] EQL: Add : operator, remove wildcard operator (#63195) (#63665) 2020-10-14 09:31:04 -04:00
James Rodewig
12c6f321a0
[DOCS] EQL: Remove Endgame EQL refs (#63636) (#63663) 2020-10-14 08:48:48 -04:00
Przemyslaw Gomulka
63330f1447
Skip tests for week based date formats with jdk 8 (#63626)
Week based formats with JDK8 are using calendar data provider with
Sunday being first day of a week and requires 1 day in a week for the
first week of the year. That leads to parsing failures.
Adding a known issue section in 7.0
Skipping test when week based format is used from
ESTestCase.randomDateFormatterPattern and JDK8 is used.

closes #61496
2020-10-14 07:29:12 +02:00
James Rodewig
d838e9e3fb [DOCS] Remove unneeded word in EQL docs 2020-10-13 13:57:26 -04:00
James Rodewig
96c7caaf65
[DOCS] EQL: Document multi-value field support (#63622) (#63632) 2020-10-13 12:44:40 -04:00
Andras Palinkas
3c9f183447 SQL: Escaped wildcard (*) not accepted in LIKE (#63428)
For a query like `SELECT name FROM test WHERE name LIKE ''%c*'` ES SQL
generates an error. `*` is not a special character in a `LIKE` construct
and it's expected to not needing to be escaped, so the previous query
should work as is.
In the LIKE pattern any `*` character was treated as invalid character
and the usage of `%` or `_` was suggested instead. But `*` is a valid,
acceptable non-wildcard on the right side of the `LIKE` operator.

Fix: #55108
(cherry picked from commit 190d9fe3de)
2020-10-13 10:26:06 -04:00
Adrien Grand
1066280be5
Document standard metadata entries. (#61941) (#63538)
We standardize on some metadata entries that we plan to later leverage
in Kibana in order to provide a better out-of-the-box experience, e.g.
different visualizations make sense on gauges and counters.
2020-10-13 14:46:34 +02:00
Przemysław Witek
bb7df2eb5f
[ML] Allow setting num_top_classes to a special value -1 (#63587) (#63601) 2020-10-13 14:00:12 +02:00
István Zoltán Szabó
c87827cfcf
[DOCS] Adds AUC ROC classification metric to the API examples (#63563) (#63595) 2020-10-13 12:18:11 +02:00
Dan Hermann
4eee270e61
[DOCS] allow_duplicates option for append processor (#62336) (#63576) 2020-10-12 15:47:47 -05:00
James Rodewig
563dda4535
[DOCS] Fix typo in search profile docs (#63522) (#63558)
Co-authored-by: ondrejbardon <70531797+ondrejbardon@users.noreply.github.com>
2020-10-12 10:12:59 -04:00
James Rodewig
1be24dfb6c
[DOCS] EQL: Move to beta (#63284) (#63551) 2020-10-12 09:12:09 -04:00
Igor Motov
3bfb11a32a
Add support for histogram fields to rate aggregation (#63289) (#63511)
The rate aggregation now supports histogram fields. At the moment only sum
is supported.

Closes #62939
2020-10-08 19:16:34 -04:00
Ryan Ernst
296dc0e67f
Remove glibc warning (#63447)
Now that the bundled jdk is switched to the Oracle JDK, the glibc
warning is no longer relevant. This commit removes the warning.
2020-10-08 14:45:12 -07:00
István Zoltán Szabó
bcc2c8ed1e
[DOCS] Adds huber and msle metrics to Evaluate API example calls (#63414) (#63496) 2020-10-08 17:28:36 +02:00
James Rodewig
6257ae4980
[DOCS] Move searchable snapshots to beta (#63436) (#63477) 2020-10-08 09:27:43 -04:00
Przemysław Witek
a97bd5b787
[7.x] [ML] Validate that AucRoc has the data necessary to be calculated (#63302) (#63453) 2020-10-08 09:31:45 +02:00
James Rodewig
819d13f80a
[DOCS] Add xref to data tiers content (#63426) (#63433) 2020-10-07 13:24:43 -04:00
Lisa Cawley
6b735e5138
[DOCS] Add props for ILM searchable snapshot links (#63432) 2020-10-07 10:23:26 -07:00
Lisa Cawley
496c12be29
[DOCS] Add props for searchable snapshots API links (#63420) (#63423) 2020-10-07 09:33:42 -07:00
Andrei Dan
22f843352e
DOCS: general overview of data tiers and roles (#63086) (#63421)
This adds general overview documentation for data tiers,
the data tiers specific node roles, and their application in
ILM.

Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
Co-authored-by: debadair <debadair@elastic.co>
(cherry picked from commit d588cab747)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>

Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
Co-authored-by: debadair <debadair@elastic.co>
2020-10-07 17:29:12 +01:00
Alan Woodward
88b45dfa61
Convert TextFieldMapper to parametrized form (#63269) (#63392)
As a result of this, we can remove a chunk of code from TypeParsers as well. Tests
for search/index mode analyzers have moved into their own file. This commit also
rationalises the serialization checks for parameters into a single SerializerCheck
interface that takes the values includeDefaults, isConfigured and the value
itself.

Relates to #62988
2020-10-07 13:26:25 +01:00
Tim Brooks
855ab31f84
Add ess marker to indexing_pressure.memory.limit (#61127)
Adds marker indicating this setting is supported on Cloud.
2020-10-06 21:01:51 -06:00