Commit graph

12605 commits

Author SHA1 Message Date
Joe Gallo
9bc9ba788b
Add a replicate_for option to the ILM searchable_snapshot action (#119003) 2025-01-27 14:32:46 -05:00
Mark Tozzi
5b3436dce0
Esql - Support date nanos in date extract function (#120727)
Resolves https://github.com/elastic/elasticsearch/issues/110000

Add support for running the date extract function on nanosecond dates.
2025-01-27 14:34:50 +00:00
Kostas Krikellas
3532d0bb10
[DOCS] Update documentation for index sorting and routing for logsdb (#120721)
* [DOCS] Update documentation for index sorting and routing for logsdb

* update

* Apply suggestions from code review

Co-authored-by: Marci W <333176+marciw@users.noreply.github.com>

* Update logs.asciidoc

* Update docs/reference/data-streams/logs.asciidoc

Co-authored-by: Marci W <333176+marciw@users.noreply.github.com>

* Update logs.asciidoc

---------

Co-authored-by: Marci W <333176+marciw@users.noreply.github.com>
2025-01-27 16:21:28 +02:00
Luigi Dell'Aquila
a0840a0463
EQL: set allow_partial_search_results=true by default (#120267) 2025-01-27 10:23:34 +00:00
Tim Sullivan
7d7a9d9fdb
[Index Management] Doc updates for Kibana Reporting built-ins (#120829)
* [Index Management] Doc updates for Kibana Reporting built-ins

* Update docs/reference/indices/index-templates.asciidoc

Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>

---------

Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
2025-01-24 20:48:33 +00:00
Carlos Delgado
f61f139653
Match, Like and RLike operators improved docs (#120504) 2025-01-24 07:58:10 +01:00
Mark Tozzi
7e43605e38
Esql Support date nanos on date diff function (#120645)
Resolves #109999

This adds support for date nanos in the date diff function, as well as mixed nanos/millis use cases.

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-01-23 18:04:38 +00:00
Stanislav Malyshev
f27f74666f
ES|QL async queries: Partial result on demand (#118122)
Add capability to stop async query on demand
The theory:

- User initiates async search request
- User sends the stop request (POST _query/async/<ID>/stop)
- If the async is finished by that time, it's like regular async get
- If it's not finished, the sinks are closed and the request is forcefully finished
2025-01-23 10:21:52 -07:00
Nik Everett
eae93a2097
ESQL: Signatures for NOT IN et al (#120673)
* ESQL: Signatures for `NOT IN` et al

This generates signatures for `NOT IN`, `NOT LIKE`, and `NOT RLIKE`
using a small hack on top of the process used to generate the signatures
for `IN`, `LIKE`, and `RLIKE`. This is a very perl-worth hack, replacing
`LIKE` with `NOT LIKE` in the description. But it's useful for our
kibana friends and if we need to make it nicer we can do so later.

* Zap
2025-01-23 10:57:53 -05:00
Oleksandr Kolomiiets
cdff3defde
Fix typo in synthetic source docs (#120685) 2025-01-23 07:51:58 -08:00
István Zoltán Szabó
443f0f3ded
[DOCS] Adds note about differences between chat completion and stream API (#120636) 2025-01-23 14:41:12 +01:00
Liam Thompson
bb0d0ed6dd
Removes outdated admonition (#120556) (#120703)
Resolves /security-docs/https://github.com/elastic/security-docs/issues/6430. Removes an outdated admonition.

(cherry picked from commit 63074d8e70)

Co-authored-by: Benjamin Ironside Goldstein <91905639+benironside@users.noreply.github.com>
2025-01-23 14:08:27 +01:00
Marci W
abeb60ff1e
[DOCS] Count API: clarify ways to specify search query (#120564)
* Clarify query methods; other sprucing

* Apply suggestions from review
2025-01-22 18:05:00 -05:00
Michael Peterson
b3a032cc4e
Resolve/cluster allows querying for cluster info only (no index expression required) (#119898)
Resolve/cluster allows querying for cluster-info-only (no index expression required)

This enhancement provides users with the ability to query the _resolve/cluster API endpoint without specifying
an index expression to match against. This allows users to quickly test what remote clusters are configured on
a cluster and whether they are available for querying.

The new endpoint takes no index expression:

```
GET _resolve/cluster
```

and returns the same information as before except for the "matching_indices" field. Example response:

```
{
  "remote1": {
    "connected": false,
    "skip_unavailable": true
  },
  "remote2": {
    "connected": true,
    "skip_unavailable": false,
    "version": {
      "number": "8.17.0",
      "build_flavor": "default",
      "minimum_wire_compatibility_version": "7.17.0",
      "minimum_index_compatibility_version": "7.0.0"
    }
  }
}
```

For backwards compatibility, this new endpoint works with clusters from older versions by querying with the index expression `dummy*` on those older clusters and ignoring the matching_indices value in the response they return.
2025-01-22 12:17:29 -05:00
Andrei Stefan
cdf7be27ea
Update search-across-clusters.asciidoc to reflect the true default value of skip_unavailable setting. (#120592) 2025-01-22 16:04:56 +02:00
Pete Gillin
b8bf111830
Remove telemetry related to frozen indices (#119890)
This deprecated feature is being removed in 9.0, so the telemetry is
no longer needed.

The usage action is retained to support mixed v8/v9 clusters, with
annotations to remove in V10. But it is no longer registered in
`XPackUsageFeatureAction.ALL` and so the usage data is no longer
reported by `GET _xpack/usage`, and if invoked it always returns a
count of 0.

ES-9736 # comment Removed the telemetry in https://github.com/elastic/elasticsearch/pull/119890
2025-01-22 11:19:15 +00:00
Jim Ferenczi
1db194df22
Add Multi-Field Support for Semantic Text Fields (#120128)
Semantic text fields now support multi-fields, either as part of a multi-field structure or containing multi-fields internally.
This enhancement aligns with the semantic text field's current behavior as a standard text field.

Note: Multi-field support is only available for the new index format. Attempting to set a multi-field on an index created with the older format will still result in a failure.
2025-01-21 22:01:11 +01:00
Panagiotis Bailis
3e6b8bf51a
Fix for rrf documentation test using a knn retriever (#120112) 2025-01-21 19:32:45 +02:00
Tommaso Teofili
1b1296ef54
Move scoring in ES|QL out of snapshot (#120354)
* Move scoring in ES|QL out of snapshot

---------

Co-authored-by: Carlos Delgado <6339205+carlosdelest@users.noreply.github.com>
2025-01-21 14:22:19 +01:00
István Zoltán Szabó
c60b3be6c7
[DOCS] Rename inference services to inference integrations in docs (#120212)
Co-authored-by: David Kyle <david.kyle@elastic.co>
2025-01-21 11:19:44 +01:00
Liam Thompson
18b281ea16
[DOCS] Updated wording for clarity for new users (#120257) (#120507)
Co-authored-by: Kofi B <kofi.bartlett@elastic.co>
2025-01-21 20:32:20 +11:00
Liam Thompson
8b00d503a1
[DOCS] Update wildcard query documentation (#120251) (#120502)
Co-authored-by: Kofi B <kofi.bartlett@elastic.co>
2025-01-21 20:29:38 +11:00
Charlotte Hoblik
c760d73c55
Fix aggregation typo (#120461) 2025-01-20 11:38:50 +01:00
Carlos Delgado
aea4853069
[Docs] kNN vector rescoring for quantized vectors (#118425) 2025-01-17 17:02:09 +01:00
Iván Cea Fontenla
acb46af612
ESQL: Fix ROUND() with unsigned longs throwing in some edge cases (#119536)
There were different error cases with `ROUND(number, decimals)`:
- Decimals accepted unsigned longs, but threw a 500 with a `can't process [unsigned_long -> long]` in the cast evaluator
  - Fixed by improving the `resolveType()`
- If the number was a BigInteger unsigned long, there were 2 cases throwing an exception:
  1. Negative decimals outside the range of integer: Error
  2. Negative decimals insie the range of integer, but "big enough" for `BigInteger.TEN.pow(...)` to throw a `BigInteger would overflow supported range`
  3. -19 decimals with big unsigned longs like `18446744073709551615` was throwing an `unsigned_long overflow`

Also, when the number is a BigInteger and the decimals is a big negative (but not big enough to throw), it may be **very** slow. Taking _many_ seconds for a single computation (It tries to calculate a `10^(big number)`. I didn't do anything here, but I wonder if we should limit it.

To solve most of the cases, a warnExceptions was added for the overflow case, and a guard clause to return 0 for <-19 decimals on unsigned longs.

Another issue is that rounding to a number like 7 to -1 returns 0 instead of 10, which may be considered an error. But it's consistent, so I'm leaving it to another PR
2025-01-17 13:38:14 +00:00
Nik Everett
1c13465991
ESQL: Move more test type error testing (#119945)
This reduces the number of test cases in ESQL a little more ala #119678.
It migrates a few random tests and all of the multivalue functions:
```
92775 -> 43760
 3m45 -> 4m04
```

This adds a few more error test cases that were missing to make sure it all
lines up well. And it fixes a few error messages in a few functions. That's
*likely* where the extra time goes.
2025-01-16 20:27:27 +00:00
Nik Everett
ec0cab9a1a
Add operator to ESQL signature for kibana (#120230)
This adds a field to the kibana defintion files for each signature that
looks like:
```
  "operator": "+",
```
Kibana wants these symbols.
2025-01-16 19:50:18 +00:00
Lisa Cawley
3129851b8f
[DOCS] Move settings out of reindex API (#120260) 2025-01-16 09:30:20 -08:00
Jedr Blaszyk
0317c1ce36
[Connector API] Support hard deletes with new URL param in delete endpoint (#120200)
* [Connector API] Add hard delete support

* Undo accidental change

* undo accidental build gradle change

* Tweak typos

* Update docs/changelog/120200.yaml

* [CI] Auto commit changes from spotless

* Fix yaml test

* Actually skip the feature check since we don't have the feature anyway

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-01-16 09:45:10 +01:00
Brandon Morelli
c0f54a94be
Update redirects.asciidoc (#120249) 2025-01-15 21:58:01 -05:00
George Wallace
1a4c862dd4
Added additional entries for troubleshooting unhealthy cluster (#119914) (#120233)
* Added additional entries for troubleshooting unhealthy cluster

Reordered "Re-enable shard allocation" because not as common as other causes

Added additional causes of yellow statuses

Changed watermark commadn to include high and low watermark so users can make their cluster operate once again.

* Drive-by copyedit with suggestions for concision and some formatting fixes.



* Concision and some formatting fixes.



* Colon added



* Update docs/reference/troubleshooting/common-issues/red-yellow-cluster-status.asciidoc



* Title change



* Update docs/reference/troubleshooting/common-issues/red-yellow-cluster-status.asciidoc



* Spelling fix

* Update docs/reference/troubleshooting/common-issues/red-yellow-cluster-status.asciidoc



* Update docs/reference/troubleshooting/common-issues/red-yellow-cluster-status.asciidoc



* Update docs/reference/troubleshooting/common-issues/red-yellow-cluster-status.asciidoc



* Update docs/reference/troubleshooting/common-issues/red-yellow-cluster-status.asciidoc



---------

Co-authored-by: Kofi B <seanziee@gmail.com>
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
Co-authored-by: shainaraskas <58563081+shainaraskas@users.noreply.github.com>
2025-01-16 07:25:57 +11:00
Pat Whelan
958a861cd0
[ML] Update docs to say PUT instead of POST (#120215) 2025-01-15 13:50:20 -05:00
Mark Tozzi
2708463e12
Esql - support date nanos in date format function (#120143)
This adds support for passing Date Nanos into the Date Format function. It works for both the single argument and two argument versions. Format strings are unchanged, as the same formatting logic works for both resolutions.

resolves #109994

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-01-15 16:51:08 +00:00
István Zoltán Szabó
defbd96b96
[DOCS] Clarifies param description of model_size_bytes. (#120190) 2025-01-15 13:14:41 +01:00
Liam Thompson
f7f8ab0012
[DOCS] More targeted link for ESQL in CCS overview (#120125) 2025-01-15 10:32:33 +01:00
Mark Tozzi
2482f06f3c
ESQL - docs for to_date_nanos (#120124)
I forgot to link the ToDateNanos docs when I merged that function.
---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-01-14 16:31:24 -05:00
Pete Gillin
d85b90ad8c
Remove unfreeze REST endpoint (#119227)
This adds a sentence to `redirects.asciidoc` explaining what frozen
indices were - otherwise, everything will point to the message about
the unfreeze API having gone away, which is not very helpful. Some
cross-references are updated to point to this rather than to the
notice about the removal of the unfreeze API.

ES-9736 #comment Removed `_unfreeze` REST endpoint in https://github.com/elastic/elasticsearch/pull/119227
2025-01-14 10:34:46 +00:00
Ioana Tagirta
f5ac68df95
ESQL: Document support for semantic_text field mapping (#120052)
* Document support for semantic_text field mapping

* Address review comments
2025-01-13 22:18:47 +01:00
Nik Everett
c990377c95
ESQL: Limit memory usage of fold (#118602)
`fold` can be surprisingly heavy! The maximally efficient/paranoid thing
would be to fold each expression one time, in the constant folding rule,
and then store the result as a `Literal`. But this PR doesn't do that
because it's a big change. Instead, it creates the infrastructure for
tracking memory usage for folding as plugs it into as many places as
possible. That's not perfect, but it's better.

This infrastructure limit the allocations of fold similar to the
`CircuitBreaker` infrastructure we use for values, but it's different
in a critical way: you don't manually free any of the values. This is
important because the plan itself isn't `Releasable`, which is required
when using a real CircuitBreaker. We could have tried to make the plan
releasable, but that'd be a huge change.

Right now there's a single limit of 5% of heap per query. We create the
limit at the start of query planning and use it throughout planning.

There are about 40 places that don't yet use it. We should get them
plugged in as quick as we can manage. After that, we should look to the
maximally efficient/paranoid thing that I mentioned about waiting for
constant folding. That's an even bigger change, one I'm not equipped
to make on my own.
2025-01-13 15:04:27 +00:00
Jonathan Buttner
838a41a839
[ML] Adding docs for the unified inference API (#118696)
* Including examples

* Using js instead of json

* Adding unified docs to main page

* Adding missing description text

* Refactoring to remove unified route

* Addign back references to the _unified route

* Update docs/reference/inference/chat-completion-inference.asciidoc

Co-authored-by: István Zoltán Szabó <istvan.szabo@elastic.co>

* Address feedback

---------

Co-authored-by: István Zoltán Szabó <istvan.szabo@elastic.co>
2025-01-13 09:48:23 -05:00
Mark Tozzi
e9f2d78923
Esql additional date format testing (#120000)
This wires up the randomized testing for DateFormat. Prior to this PR, none of the randomized testing was hitting the one parameter version of the function, so I wired that up as well. This required some compromises on the type signatures, see comments in line.less

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-01-13 14:11:52 +00:00
George Wallace
8ac3c2d371
Adjustments to match Opster, readability (#119812) (#120031)
* Adjustments to match Opster, readability

https://opster.com/guides/elasticsearch/search-apis/elasticsearch-bool-queries/

* Edits



* Spacing



---------

Co-authored-by: Kofi B <23384471+thekofimensah@users.noreply.github.com>
2025-01-13 12:03:59 +01:00
Mayya Sharipova
de0914965f
[DOCS] Interval query max_gaps in all_of rule (#119963)
Add more explanation how `max_gaps` work in interval queries with
`all_of` rule.

Closes #113554
2025-01-11 07:59:32 +11:00
Orestis Floros
3c184b912c
Permissions required for stateful agentless integrations (#118644)
Closes elastic/security-team#11102
Closes elastic/security-team#11104

This allows agentless integrations (via elastic/beats#41446, elastic/kibana#203810) to write to agentless-* indices. Each index is created on-demand by the filebeat client and kibana conditionally extends the API key permissions to allow writing to the index.
2025-01-10 16:30:11 +00:00
Valentin Crettaz
1e608dc223
[DOCS] Improve/fix documentation on stored scripts (#119921)
* Improve/fix documentation on stored scripts

* Update docs/reference/scripting/using.asciidoc

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>

* Update docs/reference/scripting/using.asciidoc

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>

* Update docs/reference/transform/painless-examples.asciidoc

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>

---------

Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2025-01-10 16:13:09 +00:00
Artem Shelkovnikov
f2d069e2bf
Update Sharepoint Online connector documentation (#119933)
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2025-01-10 15:56:38 +01:00
Aurélien FOUCRET
31f11c3c0c
[ES|QL] Enable KQL function as a tech preview (#119730) 2025-01-10 12:49:28 +01:00
Niels Bauman
80e8017bb6
Run TransportGetIndexTemplatesAction on local node (#119837)
This action solely needs the cluster state, it can run on any node.
Additionally, it needs to be cancellable to avoid doing unnecessary work
after a client failure or timeout.

As a drive-by, this removes another usage of the trappy default master
node timeout.
2025-01-10 00:20:16 +00:00
Niels Bauman
65e4ec129c
Run TransportGetComposableIndexTemplate on local node (#119830)
This action solely needs the cluster state, it can run on any node.
Additionally, it needs to be cancellable to avoid doing unnecessary work
after a client failure or timeout.

As a drive-by, this removes another usage of the trappy default master
node timeout.
2025-01-10 09:00:31 +10:00
mmahacek
74d235124e
Fix line spacing on ILM docs (#119807) 2025-01-09 08:52:54 -08:00