Commit graph

12605 commits

Author SHA1 Message Date
elasticsearchmachine
b35239c952 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-29 10:01:31 +00:00
Jedr Blaszyk
1044a0104f
[Connecor API] Add references to tutorial in docs (#109099) 2024-05-29 11:48:58 +02:00
Jake Landis
7504fed0b3
remote_cluster role documentation and expose to built in privs API (#108840)
This commit introduces the documentation for remote_clusters which is used to help
 express the monitor_enrich privilege needed to use the ENRICH keyword across clusters 
when using the API key based CCS security model.

This commit also adds "remote_clusters" to the built in privs API to for easier consumption
 in Kibana.
2024-05-28 13:51:21 -05:00
David Turner
efd450ee19
Clarify that red/yellow health must be addressed (#109090)
We don't expect a cluster to run with `yellow` health for an extended
period of time, but it's not clear from these docs that it's important
to bring the cluster back to `green` health ASAP. This commit clarifies
these docs.
2024-05-28 11:43:54 -04:00
Tim Grein
6d864154ca
[Inference API] Add Google AI Studio completion docs (#109089) 2024-05-28 15:21:33 +02:00
elasticsearchmachine
83f51b477e Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-28 10:01:58 +00:00
David Turner
42e5293c04
Capture GC logs alongside heap dumps (#109087)
GC logs can be important to understand a heap dump, especially if
there's lots of unreachable objects and the GC is struggling to keep up.
2024-05-28 04:54:04 -04:00
Oleksandr Kolomiiets
42f4294a86
Enable fallback synthetic source for token_count (#109044) 2024-05-27 10:22:59 -07:00
István Zoltán Szabó
2b0d2c9c23
[DOCS] updates transforms at scale doc with date rounding. (#109073) 2024-05-27 16:34:01 +02:00
elasticsearchmachine
a40ead0f09 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-27 10:02:23 +00:00
Luigi Dell'Aquila
a5b1848c14
ES|QL: more tests for coalesce() function (#109032)
Adding more unit tests for `coalesce()` function, in particular adding
tests for `ip`, `date` and spatial data types.

This also generates the right signatures for Kibana.

Related to https://github.com/elastic/elasticsearch/issues/108982
2024-05-27 04:36:06 -04:00
Oleksandr Kolomiiets
eea996c172
Add synthetic source support for geo_shape via fallback implementation (#108881)
This PR enables geo_shape mapper to use fallback synthetic source infrastructure and as such adds synthetic source support for this field type.
2024-05-24 10:19:22 -07:00
Carlos Delgado
474a5a1174
Add docs note for limits on synonyms (#108967) 2024-05-24 19:02:00 +02:00
Oleksandr Kolomiiets
8cfdbcc9a4
Documentation for ignore_malformed support with synthetic source for aggregate_metric_double (#108983) 2024-05-24 09:49:38 -07:00
Niels Bauman
45b8c3d20c
Use unique index patterns in template tests (#108946)
These patterns overlapped with certain templates from
the APM plugin.
2024-05-23 20:22:58 +02:00
Stef Nestor
4ab4d8727f
(+Doc) Recover from "no_valid_shard_copy" (#108929)
* (+Doc) Recover from "no_valid_shard_copy"

👋 @shainaraskas @DaveCTurner @anniegale9538  as follow-up to https://github.com/elastic/elasticsearch/pull/108263, this fixes the now targeted doc to make the recovery options look like alternatives rather than sequential steps.

* Apply suggestions from code review

Co-authored-by: Ievgen Degtiarenko <ievgen.degtiarenko@elastic.co>

---------

Co-authored-by: Ievgen Degtiarenko <ievgen.degtiarenko@elastic.co>
2024-05-23 11:13:07 -06:00
Alexander Spies
c5ac06a70c
Remove esql version from docs (#108933)
Follow-up to https://github.com/elastic/elasticsearch/pull/108919. The
latter needs to be merged first to have the docs tests pass, as it makes
the version parameter optional in requests.
2024-05-23 10:36:15 -04:00
ChrisHegarty
bfa73a73ca Merge branch 'main' into lucene_snapshot 2024-05-23 15:33:52 +01:00
Mary Gouseti
af45653e00
Expose basic x-pack telemetry for failure store (#108899) 2024-05-23 16:45:11 +03:00
ChrisHegarty
45a51d558c Merge branch 'main' into lucene_snapshot 2024-05-23 14:03:51 +01:00
Kathleen DeRusso
7f35f1bed0
Add sparse_vector query (#108254)
---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Benjamin Trent <ben.w.trent@gmail.com>
2024-05-22 17:06:57 -04:00
Annie Hansen
582c6c0400
(DOC +) Add resolutions to Allocation Explain examples (#108263)
* (DOC +) Add resolutions to Allocation Explain examples

* Update docs/reference/cluster/allocation-explain.asciidoc

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>

* Update docs/reference/cluster/allocation-explain.asciidoc

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>

* Update docs/reference/cluster/allocation-explain.asciidoc

Co-authored-by: David Turner <david.turner@elastic.co>

---------

Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
Co-authored-by: David Turner <david.turner@elastic.co>
2024-05-22 14:39:27 -06:00
Stef Nestor
4d3ca2d029
(+Doc) link split-brain wiki from quorom decision making (#108915)
Mini change to link the [wiki page about "split-brain"](https://en.wikipedia.org/wiki/Split-brain_(computing)) as an industry-not-Elastic term under [Quorum-based decision making](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-quorums.html)
2024-05-22 13:22:03 -06:00
Stef Nestor
12aab08330
(+Doc) Link split-brain wiki (#108914)
Mini change to link the wiki page about "split-brain" as an industry-not-Elastic term under [Voting configurations](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-voting.html).
2024-05-22 13:21:54 -06:00
Kathleen DeRusso
74d7010a8f
Rename rule query and add support for multiple rulesets (#108831) 2024-05-22 15:20:34 -04:00
Jake Landis
ff92296217
[docs] Prevent DLS/FLS if replication is assigned (#108839)
This commit adds documentation for the DLS/FLS restriction for RCS 2.0 API keys 
where both access and replication are defined and access has DSL/FLS.
This commit also fixes a few misleading variable names.
related: #108600
2024-05-22 12:05:34 -05:00
Panagiotis Bailis
06957f6e31
Adding score from RankDoc to SearchHit (#108870) 2024-05-22 15:43:49 +03:00
David Kyle
d38d1af242
[ML] GA the update trained model action (#108868)
Accidentally missed when the other trained model APIs went GA
2024-05-22 13:30:25 +01:00
Kathleen DeRusso
3911061869
Update Search Applications docs with more introductory information about search templates (#108697)
* Update Search Applications docs with more introductory information about search templates

* Add docs tests

* Skip test

* Fix test

* Unskip test

* Add comment RE: reasoning behind test setup
2024-05-22 08:04:14 -04:00
Iván Cea Fontenla
212fc05808
Reapply "ESQL: Expose "_ignored" metadata field" (#108864) (#108871)
Expose "_ignored" metadata field in ESQL queries.

This is the same code merged here:
https://github.com/elastic/elasticsearch/pull/108770 Which got reverted
here: https://github.com/elastic/elasticsearch/pull/108864

It was reverted because of a test failure:
https://gradle-enterprise.elastic.co/s/dpi2eib2x2fj2
2024-05-22 07:06:04 -04:00
elasticsearchmachine
325bf47462 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-22 10:01:47 +00:00
Alexander Spies
16a5d248b7
ESQL: Clone ql for esql (#108773)
Part of https://github.com/elastic/elasticsearch/issues/106679

* Copy the `ql` project into a different project _just for esql_, call it `esql-core`.
* Make `esql` depend only on the latter.
* Fix `EsqlNodeSubclassTests`; I'm confused why this didn't bite us earlier.
* Update the warning regexes in some csv tests as the exceptions have other package names now.

**Note to reviewers:** Exclude the first commit when viewing the diff,
as that contains only the actual copying of `ql`. The remaining commits
are the actually meaningful ones. _The `build.gradle` files probably
require the most attention._
2024-05-22 04:35:17 -04:00
Oleksandr Kolomiiets
91d502cec6
Add generic fallback implementation for synthetic source (#108222)
This PR uses infrastructure from #107567 to implement a fallback implementation of synthetic source for field mappers that don't support it natively. In that case we will store source of such field as is in a separate stored field.
2024-05-21 11:30:30 -07:00
Iván Cea Fontenla
04f1fcee51
Revert "ESQL: Expose "_ignored" metadata field" (#108864)
Reverting after tests failure:
https://gradle-enterprise.elastic.co/s/dpi2eib2x2fj2

Reverts elastic/elasticsearch#108770
2024-05-21 11:22:27 -04:00
Iván Cea Fontenla
47370a15e6
ESQL: Expose "_ignored" metadata field (#108770)
Expose "_ignored" metadata field in ESQL queries
2024-05-21 07:32:32 -04:00
elasticsearchmachine
7bd291d726 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-21 10:01:52 +00:00
David Turner
49a253fa1a
Expose ?master_timeout in autoscaling APIs (#108759)
Relates #107984
2024-05-21 04:24:08 -04:00
Martijn van Groningen
95855043a3
Disallow new rollup jobs in clusters with no rollup usage. (#108624)
This change will add logic to the put rollup api that fails if no rollup job is active and no rollup index exists in the cluster.

The logic first check whether there is an active rollup persistent task if there are no active rollup persistent tasks, then it checks whether any rollup index exists. The latter check is an expensive check, but assuming that it only runs as part of the put rollup job api and only when there are no rollup jobs, this should be ok.

All tests that invoke the put rollup job api will need to be adjusted to create a dummy index that has rollup mapping metadata. Otherwise, tests can't create a rollup job.

Closes #108381
2024-05-21 09:38:10 +02:00
Parker Timmins
3662d12c9f
Return ingest byte stats even when 0-valued (#108796)
Change the ingest byte stats to always be returned
whether or not they have a value of 0. Add human readable
form of byte stats. Update docs to reflect changes.
2024-05-20 10:52:16 -05:00
elasticsearchmachine
06461d30ea Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-20 10:01:54 +00:00
Max Hniebergall
a2008bd190
[ML] Add option to disable inference process cache by default (#108784)
* Add option to disable inference process cache by default

* Add test

* improve tests

* Update docs and improve code

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-05-19 11:11:02 -04:00
elasticsearchmachine
c9cd48ad97 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-18 10:01:36 +00:00
Parker Timmins
298c6492a5
Make ingest byte stat names more descriptive (#108786)
Current ingest byte stat fields could easily be confused.
Add more descriptive name to make it clear that they do not
count all docs processed by the pipeline.
2024-05-17 12:03:42 -05:00
shainaraskas
9759823fe8
[DOCS] Reinforce connection between rollover and index age (#108588) 2024-05-17 12:52:42 -04:00
Oleksandr Kolomiiets
a454ac1987
Do not produce infinity values in synthetic source for range fields (#108699) 2024-05-17 09:19:14 -07:00
Joe Gallo
e1b2b599de
Add continent_code support to the geoip processor (#108780) 2024-05-17 11:48:23 -04:00
Mark J. Hoy
b3a902e035
Add Docs for Azure AI Studio Support for the Inference API (#108737)
* add docs and embeddings tutorial pieces

* cleanup openai reference

* Suggested cleanups; add missing div tag

* one more change for clarity (requests per minute)
2024-05-17 10:35:43 -04:00
Larisa Motova
a01baa3d79
Include doc size info in ingest stats (#107240)
Add ingested_in_bytes and produced_in_bytes stats to pipeline ingest stats.
These track how many bytes are ingested and produced by a given pipeline.
For efficiency, these stats are recorded for the first pipeline to process a 
document. Thus, if a pipeline is called as a final pipeline after a default pipeline,
as a pipeline processor, and after a reroute request, a document will not 
contribute to the stats for that pipeline. If a given pipeline has 0 bytes recorded
for both of these stats, due to not being the first pipeline to run any doc, these
stats will not appear in the pipeline's entry in ingest stats.
2024-05-17 08:53:24 -05:00
Jedr Blaszyk
bb5cac9e64
[Connector API] Improve create connector endpoints (#108766) 2024-05-17 15:30:14 +02:00
Kuni Sen
e2f9f6479d
Update searchable snapshot reliability docs (#108750)
Relates https://github.com/elastic/elasticsearch/pull/108451

Co-authored-by: David Turner <david.turner@elastic.co>
2024-05-17 13:40:11 +01:00