Commit Graph

9935 Commits

Author SHA1 Message Date
Adam Locke 686a3fd45d
[DOCS] Update CCS compatibility matrix for 8.3 (#88906)
* [DOCS] Update CCS compatibility matrix for 8.3

Updates the CCS compatibility table to include 8.3.

* Fixing busted table 🔨

* Update table for 8.3 -> 8.1 support

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2022-09-07 11:53:22 -04:00
Abdon Pijpelink 56edb88fed
Update disk-usage.asciidoc (#89709) (#89874)
added missing word

(cherry picked from commit 3e35455511)

Co-authored-by: Brady Vidovic <bradvido@users.noreply.github.com>
2022-09-07 23:28:44 +09:30
Pooya Salehi 59c1c81262
Fix typo in get-snapshot-status-api doc (#89865) 2022-09-07 15:21:41 +02:00
Julie Tibshirani 3c1b070329
Avoid negative scores with cross_fields type (#89016)
The cross_fields scoring type can produce negative scores when some documents
are missing fields. When blending term document frequencies, we take the maximum
document frequency across all fields. If one field appears in fewer documents
than another, this means that its IDF can become negative. This is because IDF
is calculated as `Math.log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5))`

This change adjusts the docFreq for each field to `Math.min(docCount, docFreq)`
so that the IDF can never become negative. It makes sense that the term document
frequency should never exceed the number of documents containing the field.
2022-09-06 13:02:24 -07:00
Tanguy Leroux 33ff7b2cb8
[Docs] Indicate that CCR does not auto-follow existing indices, only newly created ones (#89498) 2022-09-07 01:43:19 +09:30
Anthony McGlone 492f5b1751
[DOCS] Update search_after section with an example (#89631)
* [DOCS] Update search_after section with an example

* Update docs/reference/search/search-your-data/paginate-search-results.asciidoc

Co-authored-by: Abdon Pijpelink <abdon@abdon.nl>

* Update docs/reference/search/search-your-data/paginate-search-results.asciidoc

Co-authored-by: Abdon Pijpelink <abdon@abdon.nl>

* Update docs/reference/search/search-your-data/paginate-search-results.asciidoc

Co-authored-by: Abdon Pijpelink <abdon@abdon.nl>

* [DOCS] Update search_after section with an example

* [DOCS] Update search_after example with a response with sort values

Co-authored-by: Abdon Pijpelink <abdon@abdon.nl>
2022-09-05 15:33:03 +02:00
David Turner 6e3fe01b5a
Reject unknown bulk actions (#89450)
Requests to the bulk API comprise a sequence of items, each of which
starts with a JSON object describing the item. This object includes the
type of action to perform with the item which should be one of `create`,
`update`, `index`, or `delete`. In earlier versions Elasticsearch would
ignore items with an unrecognized type, skipping the next line in the
request, but this lenient behaviour means that there is no way for the
client to associate the items in the response with the items in the
request, and in some cases it would cause the remainder of the request
to be parsed incorrectly.

With this commit, requests to the bulk API must comprise only items with
recognized types. Elasticsearch will reject requests containing any
items with an unrecognized type with a `400 Bad Request` error response.
2022-09-05 20:57:02 +09:30
debadair ba14aaa004
[DOCS] Add simple dev setup instructions back to the README (#89714)
* [DOCS] Add Docker-based quickstart instructions to README & ES guide

* Removed attributes

* Added basic tutorial

* Fixed headings

* Edit

* [DOCS] Adding basic dev setup instructions to the ES guide

* Incorporated security config from Kibana docs

* Update README.asciidoc

Co-authored-by: Adam Locke <adam.locke@elastic.co>

* Update README.asciidoc

Co-authored-by: Adam Locke <adam.locke@elastic.co>

* Added callouts for version attributes

* Update README.asciidoc

Co-authored-by: Adam Locke <adam.locke@elastic.co>

* Update README.asciidoc

Co-authored-by: Adam Locke <adam.locke@elastic.co>

* Added README content to guide topic

* Snippet test fixes

* Incorporated review feedback

* Remove version

* Update docs/reference/setup/run-elasticsearch-locally.asciidoc

* Added info about security on by default

* Fix xrefs

* Update docs/reference/setup/run-elasticsearch-locally.asciidoc

* Fix headers

* Edits

Co-authored-by: Adam Locke <adam.locke@elastic.co>
2022-09-01 16:49:05 -07:00
István Zoltán Szabó e244473962
[DOCS] Reworks aggregating data for faster performance page (#89575) 2022-09-01 13:59:05 +02:00
István Zoltán Szabó cbda0a51c6
[DOCS] Adds text similarity task example to API docs (#89756) 2022-09-01 11:53:26 +02:00
Dimitris Athanasiou b5504ea701
[ML] Lift limit of max number of classes for classification to 100 (#89755)
Limit was previously set to `30`. After the improvements in elastic/ml-cpp#2395
we now raist the limit to `100`.
2022-09-01 10:47:58 +03:00
István Zoltán Szabó a23c77ceaa
[DOCs] Orders transform API parameters in alphabetical order. (#89746) 2022-08-31 11:42:07 +02:00
Jack Conradson 8c30b86fe2
Fix bug for kNN with filtered aliases (#89621)
This change adds the filter query for a filtered alias to the knn query during the dfs phase on the 
shard. This ensures the correct number of k results are returned instead of removing results as a post 
filter.

Fixes: #89561
2022-08-30 15:57:37 -07:00
debadair 30bb54a4e2
[DOCS] Remove coming tag from 8.4.1 RNs (#89727)
* [Doc] Release notes for v8.4.1 (#89636)

* [Doc] Release notes for v8.4.1

Gradle generated release notes for v8.4.1

* address feedback

* [DOCS] Remove coming tag for 8.4.1 RNs

Co-authored-by: Yang Wang <yang.wang@elastic.co>
2022-08-30 08:00:08 -07:00
debadair e0fe6de63a
[Doc] Release notes for v8.4.1 (#89636) (#89726)
* [Doc] Release notes for v8.4.1

Gradle generated release notes for v8.4.1

* address feedback

Co-authored-by: Yang Wang <yang.wang@elastic.co>
2022-08-30 07:59:04 -07:00
Andrei Dan 7edf5aa750
[DOCS] health api details descriptions (#89553) 2022-08-30 15:55:18 +01:00
Nik Everett 104f4e9fb5
Synthetic _source: support version field type (#89706)
This adds support for synthetic _source to the `version` field type. It
works very similarly to `keyword` but with an extra decode step.

I modified the decoder to return a `BytesRef` instead of a `String`
because many of the callers seemed to be converting that string directly
into bytes again. Synthetic source would have wanted to do that. As was
the query infrastructure.
2022-08-30 09:39:50 -04:00
Abdon Pijpelink e891909dfa
[DOCS] Explain dynamic behavior for unmapped copy_to fields (#89626)
* [DOCS] Explain dynamic behavior for unmapped copy_to fields

* Review suggestions
2022-08-30 15:15:35 +02:00
debadair cda5ce42aa
remove 8.3.0 coming tag (#89701) 2022-08-29 12:32:14 -07:00
Leaf-Lin 78d9d6844f
[DOCS] Add warning on restarting nodes exceeding low disk watermark (#89018)
* Create restart-cluster.asciidoc

As per https://github.com/elastic/elasticsearch/issues/49972 and https://github.com/elastic/elasticsearch/issues/56578, if a node is above low disk threshold when being restarted (rolling restart, network disruption or crash), the disk threshold decider prevents reusing the shard content on the restarted node.

The consequence of the event is the node may take a long time to start.

* Update docs/reference/setup/restart-cluster.asciidoc

LGTM! Thanks!

Co-authored-by: Adam Locke <adam.locke@elastic.co>

Co-authored-by: Adam Locke <adam.locke@elastic.co>
2022-08-29 15:14:44 -04:00
David Kilfoyle 2a44a8982f
[DOCS] Remove feature flag from TSDS docs (#89673)
* Docs: Remove feature flag and add preview label to TSDS docs

* Fix technical preview tag
2022-08-29 10:33:55 -04:00
Abdon Pijpelink 772784f3c9
[DOCS] Add note that terms enum API may return terms from deleted docs (#89654) 2022-08-29 15:19:04 +02:00
István Zoltán Szabó 9a71d1fa78
[DOCS] Clarifies retention policy for transforms (#89685) 2022-08-29 13:17:15 +02:00
István Zoltán Szabó accf737145
[DOCS] Adds unattended setting to transforms API docs. (#89335) 2022-08-29 11:46:52 +02:00
QY cdcf238787
Remove unexpected meta param in agg's response (#89467)
Only output the `meta` param from aggs if it was sent in the request.
2022-08-26 15:57:51 -04:00
Nik Everett 0683c90ded
REST tests for normalize agg (#89629)
This adds a REST test for the normalize pipeline agg so we have
backwards compatibility tests for it.
2022-08-26 14:18:46 -04:00
Lisa Cawley 8fd9c5a096
[DOCS] Add ml-cpp PRs to release notes (#89663) 2022-08-26 09:15:34 -07:00
Pooya Salehi b501bfc26d
Mute DocsClientYamlTestSuiteIT test {yaml=reference/ilm/apis/get-lifecycle/line_49} (#89640)
Relates https://github.com/elastic/elasticsearch/issues/89623
2022-08-26 18:45:28 +09:30
Adam Locke 2fad061394
[DOCS] Update add node section (#89393)
* [DOCS] Update add node section

* Include information for enrolling nodes
2022-08-25 08:51:03 -04:00
Leaf-Lin 65b05f858e
Add default value for destructive_requires_name (#85591)
As per https://github.com/elastic/elasticsearch/pull/66908, the setting now defaults to `True`, but it's not shown in the doc.  Can we please have the doc updated?
2022-08-25 08:44:53 -04:00
Karen Metts 7f918848e8 Remove coming tag from release notes (#89577) 2022-08-24 10:10:19 -07:00
Mark Vieira 875164c876 Generate release notes for 8.4 release (#89475) 2022-08-24 10:09:42 -07:00
Dimitris Athanasiou 32d512286d
[ML] Validate trained model deployment queue_capacity limit (#89573)
When starting a trained model deployment, a queue is created.
If the queue_capacity is too large, it can lead to OOM and a node
crash.

This commit adds validation that the queue_capacity cannot be more
than 1M.

Closes #89555
2022-08-24 16:52:19 +03:00
István Zoltán Szabó 74d694e0fd
[DOCS] Resizes anomaly detection screenshot properly. (#89544) 2022-08-23 16:38:15 +02:00
István Zoltán Szabó ac71b52ab3
[DOCS] Updates anomaly detection alert rule type screenshot. (#89532) 2022-08-23 15:37:40 +02:00
Luigi Dell'Aquila e9ea4630bb
SQL: Set track_total_hits to false when not needed (#89106) 2022-08-22 17:22:13 +02:00
Joe Gallo 3bde177fea
Rollover min_* conditions docs and highlight (#89434) 2022-08-17 15:24:18 -04:00
Adam Michalik a1056f1e00
Docs: Correct ctx.op value to valid 'noop' (#89391)
The documentation mentions the `noop` value ("Otherwise it does nothing (`noop`)"), however, the value used in the example script is `none`. This change corrects the value in the example script to `noop`.
2022-08-17 09:52:34 -05:00
Francisco Fernández Castaño 837a8d7a6e
Add support for floating point node.processors setting (#89281)
This commit adds support for floating point node.processors setting.
This is useful when the nodes run in an environment where the CPU
time assigned to the ES node process is limited (i.e. using cgroups).
With this change, the system would be able to size the thread pools
accordingly, in this case it would round up the provided setting
to the closest integer.
2022-08-17 15:00:39 +02:00
Abdon Pijpelink 27061a530e
Revert "[DOCS] Update search_after section with an example (#89328)" (#89411)
Reverts elastic/elasticsearch#89328
2022-08-17 18:20:15 +09:30
Anthony McGlone af8ac50788
[DOCS] Update search_after section with an example (#89328)
* [DOCS] Update search_after section with an example

* Update docs/reference/search/search-your-data/paginate-search-results.asciidoc

Co-authored-by: Abdon Pijpelink <abdon@abdon.nl>

* Update docs/reference/search/search-your-data/paginate-search-results.asciidoc

Co-authored-by: Abdon Pijpelink <abdon@abdon.nl>

* Update docs/reference/search/search-your-data/paginate-search-results.asciidoc

Co-authored-by: Abdon Pijpelink <abdon@abdon.nl>

Co-authored-by: Abdon Pijpelink <abdon@abdon.nl>
2022-08-17 09:53:14 +02:00
Abdon Pijpelink f2257cae89
[DOCS] Adds note about escaping backslashes in regex (#89276)
* [DOCS] Adds note about escaping backslashes in regex

* Fix typo

* Simplify example
2022-08-17 09:40:30 +02:00
Julie Tibshirani acf9a67480
Document kNN with aggregations (#89359)
This commit adds a short note to the 'search your data' docs around kNN search
to explain how approximate kNN works with aggregations:
* Make section on 'hybrid retrieval' more general and include aggregations info
* Remove an example response from the previous section on filtering, since this
  page was getting long
2022-08-16 15:28:32 -07:00
Nik Everett 914e216ebd
Prepare synthetic source docs for tech-preview (#89358)
Now that we're releasing synthetic _source as a tech preview feature, we
no longer want to remove the docs from the non-release builds. And we
want to mark all of the headings describing synthetic `_source` as a
preview.
2022-08-16 10:05:45 -04:00
Abdon Pijpelink 00d4953df5
[DOCS] Fixes broken example in pipeline tutorial (#89315) 2022-08-16 08:40:10 +02:00
Nik Everett 2569d1f08d
Docs: synthetic source doesn't dedupe numbers (#89355)
The docs for synthetic `_source` incorrectly claimed that synthetic
`_source` deduplicates numbers. It doesn't. The example below the prose
shows it *not* removing duplicates.
2022-08-16 07:28:46 +09:30
Yang Wang 098f5181c4
Double quote the env variable in curl command (#89279)
The env variable can contain special chacacters. Without quoting it
could mis-behave when used in the curl command of the setup docker
container.
2022-08-16 00:40:47 +10:00
Mayya Sharipova 10b804730d
Include runtime fields in total fields count (#89251)
We have a check that enforces the total number of fields needs to be below a
certain (configurable) threshold. Before runtime fields did not contribute
to the count. This patch makes all runtime fields contribute to the
count, runtime fields:
- that were explicitly defined in mapping by a user
- as well as runtime fields that were dynamically created by dynamic
 mappings

Closes #88265
2022-08-15 09:43:12 -04:00
Abdon Pijpelink e4c7febea1
Fix: Update geo-bounding-box-query.asciidoc (#87459) (#89301)
There are some redundant words so I just removed those words. Please accept this change.

(cherry picked from commit e1e5398051)

Co-authored-by: Adnan Ashraf <adnan.ashraff1@gmail.com>
2022-08-12 18:38:05 +09:30
Luca Belluccini 2d3bcc483d
[DOCS] Warn only one date format is added to the field date formats when using dynamic_date_formats (#88915)
* [DOCS] Warn only one date format is added to the field date formats

When using multiple options in `dynamic_date_formats`, only one of the formats of the first document having a date matching one of the date formats provided will be used.

E.g.
```
PUT my-index-000001
{
  "mappings": {
    "dynamic_date_formats": [ "yyyy/MM", "MM/dd/yyyy"]
  }
}

PUT my-index-000001/_doc/1
{
  "create_date": "09/25/2015"
}
```

The generated mappings will be:
```
    "mappings": {
      "dynamic_date_formats": [
        "yyyy/MM",
        "MM/dd/yyyy"
      ],
      "properties": {
        "create_date": {
          "type": "date",
          "format": "MM/dd/yyyy"
        }
      }
    },
```

Indexing a document with `2015/12` would lead to the `format` `"yyyy/MM"` being used for the `create_date`.

This can be misleading especially if the user is using multiple date formats on the same field.
The first document will determine the format of the `date` field being detected.

Maybe we should provide an additional example, such as:
```
PUT my-index-000001
{
  "mappings": {
    "dynamic_date_formats": [ "yyyy/MM||MM/dd/yyyy"]
  }
}
```

My wording is not great, so feel free to amend/edit.

* Update docs/reference/mapping/dynamic/field-mapping.asciidoc

Reword and add code example

* Turned discussion of the two syntaxes into an admonition

* Fix failing tests

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2022-08-11 10:43:53 +02:00