Commit graph

12605 commits

Author SHA1 Message Date
Liam Thompson
f1de84b51c
[DOCS] Fix casing in servicenow docs config (#115634) 2024-10-25 11:39:52 +02:00
Liam Thompson
452ca351d3
[DOCS] Test trivial commit (#115579) (#115628)
(cherry picked from commit e642dd8481)
2024-10-25 20:19:31 +11:00
István Zoltán Szabó
9394e88c0f
[DOCS] Updates inference processor docs. (#115566) 2024-10-25 10:18:01 +02:00
Craig Taverner
3d307e0d78
Don't return TEXT type for functions that take TEXT (#114334)
Always return `KEYWORD` for functions that previously returned `TEXT`, because any change to the value, no matter how small, is enough to render meaningless the original analyzer associated with the `TEXT` field value. In principle, if the attribute is no longer the original `FieldAttribute`, it can no longer claim to have the type `TEXT`.

This has been done for all functions: conversion functions, aggregating functions, multi-value functions. There were several that already produced `KEYWORD` for `TEXT` input (eg. ToString, FromBase64 and ToBase64, MvZip, ToLower, ToUpper, DateFormat, Concat, Left, Repeat, Replace, Right, Split, Substring), but many others that incorrectly claimed to produce `TEXT`, while this was really a false claim. This PR makes that now strict, and includes changes to the functions' units tests to disallow the tests to expect any functions output to be `TEXT`.

One side effect of this change is that methods that take multiple parameters that require all of them to have the same type, will now treat TEXT and KEYWORD the same. This was already the case for functions like `Concat`, but is now also the case for `Greatest`, `Least`, `Case`, `Coalesce` and `MvAppend`.

An associated change is that the type casting operator `::text` has been entirely removed. It used to map onto the `ToString` function which returned type KEYWORD, and so `::text` really produced a `KEYWORD`, which is a lie, or at least a `bug`, which is now fixed. Should we ever wish to actually produce real `TEXT`, we might love the fact that this operator has been freed up for future use (although it seems likely that function will require parameters to specify the analyzer, so might never be an operator again).

### Backwards compatibility issues:

This is a change that will fail BWC tests, since we have many tests that assert on TEXT output to functions. For this reason we needed to block two scenarios:

* We used the capability `functions_never_emit_text` to prevent 7 csv-spec tests and 2 yaml tests from being run against older versions that still emit text.
* We used `skipTest` to also block those two yaml tests from being run against the latest build, but using older yaml files downloaded (as far back as 8.14).

In all cases the change observed in these tests was simply the results columns no longer having `text` type, and instead being `keyword`.

---------

Co-authored-by: Luigi Dell'Aquila <luigi.dellaquila@gmail.com>
2024-10-25 10:09:53 +02:00
István Zoltán Szabó
ca4009e298
[DOCS] Adds stream inference API docs (#115333)
Co-authored-by: Pat Whelan <pat.whelan@elastic.co>
2024-10-25 09:13:18 +02:00
shainaraskas
97ed0a93bb
Make a minor change to trigger release note process (#113975)
* changelog entry
2024-10-24 13:26:15 -04:00
Salvatore Campagna
ebec1a2fe2
Improve Logsdb docs including default values (#115205)
This PR adds detailed documentation for `logsdb` mode, covering several key aspects of its default behavior and configuration options.

It includes:
- default settings for index sorting (`index.sort.field`, `index.sort.order`, etc.).
- usage of synthetic `_source` by default.
- information about specialized codecs and how users can override them.
- default behavior for `ignore_malformed` and `ignore_above` settings, including precedence rules.
- explanation of how fields without `doc_values` are handled and what we do if they are missing.
2024-10-24 18:25:38 +02:00
Liam Thompson
d500daf2e1
[DOCS][101] Add BYO vectors ingestion tutorial (#115112) 2024-10-24 18:02:11 +02:00
Pete Gillin
d7a9575d03
Remove deprecated local parameter from alias APIs (#115393)
This removes the `local` parameter from the `GET /_alias`, `HEAD /_alias`, and `GET /_cat/aliases` APIs. This option became a no-op and was deprecated in 8.12 by https://github.com/elastic/elasticsearch/pull/101815.

We continue to accept the parameter (deprecated, with no other effect) in v8 compatibility mode for `GET /_alias` and `HEAD /_alias`. We don't do this for `GET /_cat/aliases` where the [compatibility policy does not apply](https://github.com/elastic/elasticsearch/blob/main/REST_API_COMPATIBILITY.md#when-not-to-apply).
2024-10-24 15:58:24 +01:00
Liam Thompson
31ede8fd28
Update 8.12.0.asciidoc (#115303) (#115546)
Fixing confusing format

Co-authored-by: Johannes Mahne <johannes.mahne@elastic.co>
2024-10-24 15:57:49 +02:00
Stef Nestor
833f2fb918
(Doc+) link video for resolving max shards open (#115480)
👋 howdy team! @anniegale9538 and my [video](https://www.youtube.com/watch?v=tZKbDegt4-M)  demonstrates how to resolve `max shards open` errors as a common support ask.
2024-10-24 07:27:23 -06:00
Liam Thompson
6980fc6253
[DOCS] Add text_expansion deprecation usage note (#115529) 2024-10-24 15:11:10 +02:00
mspielberg
28715b791a
Add documentation for minimum_should_match (#113043) 2024-10-24 15:06:39 +02:00
István Zoltán Szabó
4fb7a4f1e9
[DOCS] Improve inference API documentation (#115235)
Co-authored-by: David Kyle <david.kyle@elastic.co>
2024-10-24 14:07:06 +02:00
Liam Thompson
8a3540fa74
[DOCS] Clarify start-local trial license info (#115504) 2024-10-24 11:44:13 +02:00
Nick Tindall
7599d4cf43
Use Azure blob batch API to delete blobs in batches (#114566)
Closes ES-9777
2024-10-24 19:51:52 +11:00
Liam Thompson
6e67da52d1
[DOCS– Fix typoUpdate trainedmodel.asciidoc (#115420)
Closes https://github.com/elastic/elasticsearch/issues/114968
2024-10-24 10:02:47 +02:00
Luigi Dell'Aquila
bffaabb6f5
ES|QL: improve docs about escaping for GROK, DISSECT, LIKE, RLIKE (#115320) 2024-10-24 09:19:46 +02:00
István Zoltán Szabó
541bcf30e5
[DOCS] Documents that ELSER is the default service for semantic_text (#114615)
Co-authored-by: Mike Pellegrini <mike.pellegrini@elastic.co>
2024-10-24 08:53:12 +02:00
shainaraskas
e581ae3482
Reorder docs sidebar (#115360) 2024-10-23 12:57:59 -04:00
Mark Tozzi
82f2fb554e
fix test to not run when the FF is disabled (#114260)
Fixes #113661

Don't run the tests when the feature is disabled.


Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-10-22 13:41:17 -04:00
Luke Whiting
36c45c15da
#104233 Allow Watcher Node Allocation Settings (#115251)
* Update settings endpoint modified

Now accepts index.routing.allocation.* settings but denies changing
the allocation setting that keeps watches on data nodes

* Get settings endpoint modified

Now returns index.routing.allocation.* settings explicitly filters out
the `index.routing.allocation.include._tier_preference` setting

* Tests for modified endpoints

* Update docs
2024-10-22 15:27:42 +01:00
Salvatore Campagna
f32051f462
fix: use setting instead of (#115193) 2024-10-22 11:09:19 +02:00
Keith Massey
2ff6bb0543
Adding support for additional mapping to simulate ingest API (#114742) 2024-10-21 17:08:50 -05:00
Imad Saddik
eae3a426e7
Fixed hyperlink in search.asciidoc (#115156) 2024-10-21 17:22:29 +02:00
Johannes Fredén
deef8c7a9b
[DOCS] Add DLS multi-match limitation (#115003) 2024-10-21 16:41:28 +02:00
Luca Cavanna
8efd08b019
Upgrade to Lucene 10 (#114741)
The most relevant ES changes that upgrading to Lucene 10 requires are:

- use the appropriate IOContext
- Scorer / ScorerSupplier breaking changes
- Regex automaton are no longer determinized by default
- minimize moved to test classes
- introduce Elasticsearch900Codec
- adjust slicing code according to the added support for intra-segment concurrency
- disable intra-segment concurrency in tests
- adjust accessor methods for many Lucene classes that became a record
- adapt to breaking changes in the analysis area

Co-authored-by: Christoph Büscher <christophbuescher@posteo.de>
Co-authored-by: Mayya Sharipova <mayya.sharipova@elastic.co>
Co-authored-by: ChrisHegarty <chegar999@gmail.com>
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: Armin Braun <me@obrown.io>
Co-authored-by: Panagiotis Bailis <pmpailis@gmail.com>
Co-authored-by: Benjamin Trent <4357155+benwtrent@users.noreply.github.com>
2024-10-21 13:38:23 +02:00
István Zoltán Szabó
f256752501
[DOCS] Removes experimental tag from Inference API pages (#113857) 2024-10-21 12:56:56 +02:00
István Zoltán Szabó
1cae3c8361
[DOCS] Documents that dynamic templates are not supported by semantic_text. (#115195) 2024-10-21 12:51:10 +02:00
István Zoltán Szabó
ecf4af1e88
[DOCS] Documents watsonx service of the Inference API (#115088)
Co-authored-by: Saikat Sarkar <132922331+saikatsarkar056@users.noreply.github.com>
2024-10-21 09:41:55 +02:00
Luigi Dell'Aquila
7d4f75ab80
ES|QL: add metrics for functions (#114620) 2024-10-21 09:36:14 +02:00
Salvatore Campagna
ebd363d4af
Update synthetic source documentation (#112363)
* docs: update synthetic source docs

* fix: also doc values false works

* Revert "fix: also doc values false works"

This reverts commit 0895a76758.

* fix: update synthetic source documentation

* fix: all field types support it

* fix: no need to explicitly mention it

* fix: synthetic source sorting

* fix: may instead of might
2024-10-18 13:48:32 +02:00
István Zoltán Szabó
39949c1454
[DOCS] Modifies inference landscape image. (#115090) 2024-10-18 13:19:24 +02:00
matthewabbott
9a8de1c6b7
Add link to MAX_RETRY allocation explain docs (#113657) 2024-10-18 08:09:27 +01:00
David Turner
f718c564fb
Reword docs on snapshot repo backup (#115062)
Because of #93575 it's not sufficient to mark repositories with
`readonly: true` while taking a backup. The only safe way to avoid
writes is to completely unregister them.
2024-10-18 07:51:40 +01:00
Liam Thompson
d1f26ab6f7
[DOCS] Update local data extraction version info (#115001) 2024-10-17 10:23:33 -04:00
István Zoltán Szabó
f95d3f8d43
[DOCS] Updates adaptive allocations reference docs. (#114986) 2024-10-17 12:58:52 +02:00
István Zoltán Szabó
8e26d18029
[DOCS] Adds Update inference API reference docs (#114803)
* [DOCS] Adds Update inference API reference docs.

* [DOCS] Includes update inference API docs in index.
2024-10-17 11:35:30 +02:00
Stef Nestor
9770ab7ac2 (Doc+) troubleshoot ILM videos (#114528)
This links to our 6 newest [Support Troubleshooting](https://www.youtube.com/playlist?list=PL_mJOmq4zsHbQlfEMEh_30_LuV_hZp-3d) videos which are about resolving general ILM Health & the top five ILM rollover errors to the existing [Troubleshooting ILM errors](https://www.elastic.co/guide/en/elasticsearch/reference/master/index-lifecycle-error-handling.html). It side quests to link the watermark error to [its troubleshooting doc](https://www.elastic.co/guide/en/elasticsearch/reference/master/fix-watermark-errors.html).
2024-10-16 19:10:59 +02:00
Brian Seeders
2aec12c173
Bump 8.x to version 8.17.0 2024-10-16 13:04:08 -04:00
Stef Nestor
bd754f798f
(Doc+) Cross-link max shards (#114670)
* (Doc+) Cross-link max shards

👋 It appears we have two docs of similar content about max open shards. This one contains the error users search (so is what we linked the error to in https://github.com/elastic/elasticsearch/pull/110993) but the other I believe is a placeholder doc for the health api code. Should maybe consolidate some day but in the mean time at least cross-link.

---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2024-10-16 09:29:57 -06:00
Stef Nestor
c76fd004d9
(Doc+) link video for resolving shards too large (#114915)
* (Doc+) link video for resolving shards too large

👋 howdy, team (cc: @anniegale9538 )!  Playing forward https://github.com/elastic/elasticsearch/pull/111254, [this video](https://www.youtube.com/watch?v=sHyNYnwbYro) demonstrates an example resolving shards too large via reindex under [this section](https://www.elastic.co/guide/en/elasticsearch/reference/master/size-your-shards.html#shard-size-recommendation) as it's a top support ask.

---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2024-10-16 09:29:41 -06:00
Salvatore Campagna
f6a1e36d6b
Replace usages of _source.mode in documentation (#114743)
We will deprecate the `_source.mode` mapping level configuration
in favor of the index-level `index.mapping.source.mode` setting.
As a result, we go through the documentation and update it to reflect
the introduction of the setting.
2024-10-16 16:17:41 +02:00
István Zoltán Szabó
ccf6ab9ab3
[DOCS] Adds link to tutorial and API docs to trained model autoscaling. (#114904) 2024-10-16 15:47:13 +02:00
Pooya Salehi
ae452becc7
Document _cat/indices behavior when encountering source only indices (#114884)
Closes https://github.com/elastic/elasticsearch/issues/114546
2024-10-16 20:08:17 +11:00
David Turner
9082e02d75
Retry S3BlobContainer#getRegister on all exceptions (#114813)
S3 register reads are subject to the regular client retry policy, but in
practice we see failures of these reads sometimes for errors that are
transient but for which the SDK does not retry. This commit adds another
layer of retries to these reads.

Relates ES-9721
2024-10-16 09:08:50 +02:00
Panagiotis Bailis
a7e62f56a1
Removing tech-preview header and updating documentation for retrievers and RRF (#114810) 2024-10-16 09:16:43 +03:00
Nick Tindall
16864e985b
Retry throttled snapshot deletions (#113237)
Closes ES-8562
2024-10-16 09:08:49 +11:00
Luke Whiting
37f03dc40d
#111893 Add Warnings For Missing Index Templates (#114589)
* Add data stream template validation

to snapshot restore

* Add data stream template validation

to data stream promotion endpoint

* Add new assertion for response headers

Add a new assertion to synchronously execute a request and check the
response contains a specific warning header

* Test for warning header on snapshot restore

When missing templates

* Test for promotion warnings

* Add documentation for the potential error states

* PR changes

* Spotless reformatting

* Add logic to look in snapshot global metadata

This checks if the snapshot contains a matching template for the DS

* Comment on test cleanup to explain it was copied

* Removed cluster service field
2024-10-15 15:00:53 +01:00
Quentin Pradet
fc23f2f1c6
[DOCS] Fix User agent processor properties (#112518) 2024-10-15 17:35:26 +04:00