Commit graph

12098 commits

Author SHA1 Message Date
Liam Thompson
cc825bff23
refresh ESQL kibana docs (#116441) (#116472)
(cherry picked from commit ba65914285)

Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>
2024-11-08 21:55:12 +11:00
Jake Landis
6b98d77d57
Fix missing remote_cluster docs (#116366) (#116440)
Documentation for the remote_cluster in the role was added
in #111682 and #108840, but a few places were missed.
This commit fill the gaps in the documentation.
2024-11-08 07:10:47 +11:00
kosabogi
1133942668
Adds 8.16 version to css matrix (#115844) 2024-11-07 18:14:38 +01:00
Liam Thompson
beb8f3c118
[DOCS] Use explicit link text in query rules retriever (#116389) (#116412)
(cherry picked from commit c42b1ef95a)
2024-11-08 01:54:14 +11:00
Liam Thompson
b24151a3cd
Add documentation for query rules retriever (#115696) (#116401) 2024-11-07 15:28:50 +01:00
Liam Thompson
893645942e
[DOCS] Fix boolean for native connectors (#116394) (#116395)
(cherry picked from commit 22c55fa1ca)
2024-11-07 22:43:34 +11:00
Tim Grein
b7951c5ce7
Add ES|QL bit_length function (#115792) (#116378) 2024-11-07 20:04:20 +11:00
Sean Story
c02db5046c
Clarify that MSSQL supports only SQL Server auth (#116340) (#116343)
* Clarify that MSSQL supports only SQL Server auth

* typo
2024-11-07 04:20:10 +11:00
Benjamin Trent
616b3908a0
[8.x] Add support for bitwise inner-product in painless (#116082) (#116285)
* Add support for bitwise inner-product in painless (#116082)

This adds bitwise inner product to painless. 

The idea here is:

 - For two bit arrays, which we determine to be a byte array whose dimensions match `dense_vector.dim/8`, we simply return bitwise `&`
 - For a stored bit array (remember, with `dense_vector.dim/8` bytes), sum up the provided byte or float array using the bit array as a mask.

This is effectively supporting asynchronous quantization. A prime
example of how this works is:
https://github.com/cohere-ai/BinaryVectorDB

Basically, you do your initial search against the binary space and then
rerank with a differently quantized vector allowing for more information
without additional storage space. 

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

* removing unnecessary task adjustment

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-11-07 00:35:19 +11:00
kosabogi
c58c94a92c
Updates Connectors section page references (#116239) (#116320)
(cherry picked from commit 954ab8ab79)
2024-11-06 22:57:53 +11:00
Liam Thompson
5d9ee17d64
[DOCS] Fix typo in percentile-aggregation.asciidoc (#116268) (#116304)
(cherry picked from commit 8a988445b3)
2024-11-06 20:47:33 +11:00
David Turner
9ef0e21340
Add note about incompleteness of CBs (#116176) (#116189)
The docs kinda imply that circuit breakers protect against OOMEs, at
least that's how some customers seem to interpret them. This commit adds
a note spelling out that this isn't the case.
2024-11-05 03:36:44 +11:00
Mark Tozzi
1224db91d5
[ESQL] clean up date trunc tests (#116111) (#116179)
While working on #110008 I discovered that the Date Trunc tests were only running in folding mode, because the interval types are marked as not representable. The correct way to test this is to set the forceLiteral flag for those fields, which will (as the name suggests) force them to be literals even in non-folding tests.

Doing that turned up errors in the evaluatorToString tests, which I fixed. There are two big changes here. First, the second parameter to the evaluator is a Rounding instance, not the actual interval. Since Rounding includes some information about the specific rounding in the toString results, I am just using a starts with matcher to validate the majority of the string, rather than trying to reconstruct the expected rounding string. Second, passing in a literal null for the interval parameter folds the whole expression to null, and thus a completely different toString. I added a clause in AnyNullIsNull to account for this.

While I was in there, I moved some specific test cases to a different file. I know moving code is something we're trying to minimize right now, but this seemed worth it. The tests in question do not depend on the parameters of the test case, but all methods in the class get run for every set of parameters. This was causing these tests to be run many times with the same values, which bloats our test run time and test count. Moving them to a distinct class means they'll only be executed once per test run. I feel like this benefit outweighs the cost of git history complexity.
2024-11-05 02:32:08 +11:00
Liam Thompson
7b39d3db52
Term Stats documentation (#115933) (#116167)
* Term Stats documentation

* Update docs/reference/reranking/learning-to-rank-model-training.asciidoc

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

* Fix query example.

---------

Co-authored-by: István Zoltán Szabó <istvan.szabo@elastic.co>
(cherry picked from commit 0416812456)

Co-authored-by: Aurélien FOUCRET <aurelien.foucret@gmail.com>
2024-11-04 23:28:12 +11:00
Nhat Nguyen
f63cf672fd
Add logsdb telemetry (#115994) (#116101)
This PR adds telemetry for logsdb. However, this change only tracks the 
count of indices using logsdb and those that use synthetic source. 
Additional stats, such as shard, indexing, and search stats, will be
added in a follow-up, as they require reaching out to data nodes.
2024-11-02 03:32:12 +11:00
Chris Hegarty
78fc557d3f ES|QL Add full-text search to the functions docs page (#116024)
Now that the match and qstr functions are Tech Previewing, we should add them to the top-level functions doc page.

Co-authored-by: Craig Taverner <craig@amanzi.com>
2024-11-01 12:08:48 +00:00
István Zoltán Szabó
916984feab
Adds hands-on learning for Search link to the landing page (#116007) (#116017)
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
2024-10-31 17:51:35 +01:00
Liam Thompson
e620c670ae
[DOCS] Update connectors link on landing page (#115904) (#115913)
(cherry picked from commit feea0a09b8)
2024-10-30 20:52:53 +11:00
Slobodan Adamović
4b9ffa0b0e
[DOCS] _cat/shards: clarify required permissions for restricted indices (#115650) (#115804)
Clarify security requirements when requesting detailed shard information
for restricted indices.

(cherry picked from commit 023c856c24)
2024-10-29 06:59:37 +11:00
Marci W
ffb7a71bbe
Document ?_tstart and ?_tend in Kibana (#114965) (#115786)
* Document ?_tstart and ?_tend in Kibana

* Edits: restructure, be clearer

(cherry picked from commit 2b6828ddcd)
2024-10-29 02:50:35 +11:00
David Turner
b88e9a6947
Add link to MAX_RETRY allocation explain docs (#115099)
Backport of #113657 to `8.x`

Co-authored-by: matthewabbott <ttobbatam@gmail.com>
2024-10-29 01:45:01 +11:00
David Turner
2240b02108
Reword docs on snapshot repo backup (#115062) (#115071)
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-29 01:05:07 +11:00
István Zoltán Szabó
e1bb8f89b6
Revert "[DOCS] Documents that ELSER is the default service for `semantic_text…" (#115748) (#115767)
This reverts commit 541bcf30e5.
2024-10-29 00:59:14 +11:00
István Zoltán Szabó
a1dabd31d5
[DOCS] Comments out default inference config docs. (#115742) (#115766) 2024-10-29 00:58:18 +11:00
Liam Thompson
33cfc7b5d3
Update quickstart overview, add local install instructions (#115746) (#115761)
(cherry picked from commit ab558e663c)
2024-10-29 00:40:22 +11:00
Benjamin Trent
6ba9a6a09c
Updating knn tuning guide and size estimates (#115691) (#115753) 2024-10-28 23:45:42 +11:00
Liam Thompson
8135f95869
[DOCS] Add search and filtering tutorial/quickstart, edit filtering page (#114353) (#115738)
(cherry picked from commit 0d8d8bd392)
2024-10-28 21:33:32 +11:00
David Turner
7e02a7cd36
Clarify status of response to voting config API (#115714) (#115732)
These APIs return no body, just a status code. This commit clarifies
that in the docs.

Closes #115462
2024-10-28 17:33:56 +11:00
István Zoltán Szabó
f9c57ad32f
[DOCS] Documents configurable chunking (#115300) (#115674)
Co-authored-by: David Kyle <david.kyle@elastic.co>
2024-10-26 03:01:50 +11:00
Liam Thompson
b7068efb8a
[DOCS] Fix link syntax in connectors-API-tutorial.asciidoc (#115635) (#115647)
(cherry picked from commit e3523c1591)
2024-10-25 22:27:33 +11:00
Liam Thompson
ae86e1bd93
[DOCS] Fix casing in servicenow docs config (#115634) (#115637)
(cherry picked from commit f1de84b51c)
2024-10-25 21:07:25 +11:00
Craig Taverner
3b3e7f7484
Don't return TEXT type for functions that take TEXT (#114334) (#115625)
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 20:12:02 +11:00
István Zoltán Szabó
45af6f97f0
[DOCS] Updates inference processor docs. (#115566) (#115627) 2024-10-25 19:44:51 +11:00
István Zoltán Szabó
a73e972777
[DOCS] Adds stream inference API docs (#115333) (#115623)
Co-authored-by: Pat Whelan <pat.whelan@elastic.co>
2024-10-25 18:40:40 +11:00
shainaraskas
9506d46815
Make a minor change to trigger release note process (#113975) (#115592)
* changelog entry

(cherry picked from commit 97ed0a93bb)
2024-10-25 07:42:59 +11:00
Liam Thompson
e847481fd6
[DOCS][101] Add BYO vectors ingestion tutorial (#115112) (#115576)
(cherry picked from commit d500daf2e1)
2024-10-25 03:43:32 +11:00
Liam Thompson
3ff25303bb
Update 8.12.0.asciidoc (#115303) (#115540)
Fixing confusing format

(cherry picked from commit b1489c5ad2)

Co-authored-by: Johannes Mahne <johannes.mahne@elastic.co>
2024-10-25 00:40:17 +11:00
Liam Thompson
bd8b55cc5b
[DOCS] Add text_expansion deprecation usage note (#115529) (#115537)
(cherry picked from commit 6980fc6253)
2024-10-25 00:39:53 +11:00
Liam Thompson
1883db7f92
Add documentation for minimum_should_match (#113043) (#115530)
(cherry picked from commit 28715b791a)

Co-authored-by: mspielberg <9729801+mspielberg@users.noreply.github.com>
2024-10-25 00:35:31 +11:00
István Zoltán Szabó
36e95ca34b
[DOCS] Improve inference API documentation (#115235) (#115525)
Co-authored-by: David Kyle <david.kyle@elastic.co>
2024-10-24 23:34:44 +11:00
István Zoltán Szabó
4f3de8344b
[DOCS] Resolves conflict. (#115503) 2024-10-24 11:08:18 +02:00
Luigi Dell'Aquila
5290630bd0
ES|QL: improve docs about escaping for GROK, DISSECT, LIKE, RLIKE (#115320) (#115493) 2024-10-24 19:14:57 +11:00
Johannes Fredén
b888c48976
[DOCS] Add DLS multi-match limitation (#115003) (#115388)
(cherry picked from commit deef8c7a9b)
2024-10-23 13:06:45 +02:00
Luke Whiting
1a11757bb4
#104233 Allow Watcher Node Allocation Settings (#115251) (#115330)
* 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-23 02:41:42 +11:00
Keith Massey
35f7efefd1
Adding support for additional mapping to simulate ingest API (#114742) (#115284) 2024-10-22 08:13:33 -05:00
Nik Everett
f38f2301bc
ESQL: Skip unsupported grapheme cluster test (#115258)
This skips the test for reversing grapheme clusters if the node doesn't
support reversing grapheme clusters. Nodes that are using a jdk before
20 won't support reversing grapheme clusters because they don't have
https://bugs.openjdk.org/browse/JDK-8292387

This reworks `EsqlCapabilities` so we can easilly register it only if
we're on jdk 20:
```
FN_REVERSE_GRAPHEME_CLUSTERS(Runtime.version().feature() < 20),
```

Closes #114537
Closes #114535
Closes #114536
Closes #114558
Closes #114559
Closes #114560
2024-10-21 20:06:56 +02:00
Liam Thompson
8fc757d000
Fixed hyperlink in search.asciidoc (#115156) (#115248)
(cherry picked from commit eae3a426e7)

Co-authored-by: Imad Saddik <79410781+ImadSaddik@users.noreply.github.com>
2024-10-22 02:52:26 +11:00
Luigi Dell'Aquila
b0b9968490
ES|QL: add metrics for functions (#114620) (#115191) 2024-10-21 14:06:56 +02:00
István Zoltán Szabó
af19586f8c
[DOCS] Documents that dynamic templates are not supported by semantic_text. (#115195) (#115202) 2024-10-21 22:22:10 +11:00
István Zoltán Szabó
8c25871a43
[DOCS] Removes experimental tag from Inference API pages (#113857) (#115204) 2024-10-21 22:18:54 +11:00