Commit graph

3650 commits

Author SHA1 Message Date
elasticsearchmachine
b35239c952 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-29 10:01:31 +00:00
David Turner
58cb500ba6
Fix trappy timeouts in enrich module (#109136)
Relates #107984
2024-05-29 08:14:28 +01:00
David Turner
e931596bce
Fix trappy timeouts in watcher actions (#109098)
Relates #107984
2024-05-28 19:27:04 +01:00
David Turner
a80b7f62db
Fix trappy timeouts in AcknowledgedRequest.Plain (#109102)
Relates #107984
2024-05-28 10:13:25 -04:00
elasticsearchmachine
83f51b477e Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-28 10:01:58 +00:00
Oleksandr Kolomiiets
42f4294a86
Enable fallback synthetic source for token_count (#109044) 2024-05-27 10:22:59 -07:00
elasticsearchmachine
a40ead0f09 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-27 10:02:23 +00:00
Kostas Krikellas
b1d54e6245
Store source for fields in objects with dynamic override (#108911)
Covers setting `dynamic` to `false` or `runtime`.

Related to https://github.com/elastic/elasticsearch/issues/106825,
https://github.com/elastic/elasticsearch/pull/108417
2024-05-27 03:47:22 -04:00
Niels Bauman
454281728c
Merge and bump Health API YAML tests (#109009) 2024-05-24 21:18:49 +02: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
ChrisHegarty
45a51d558c Merge branch 'main' into lucene_snapshot 2024-05-23 14:03:51 +01:00
David Turner
4878509bb0
Expose ?master_timeout on get-shutdown API (#108886)
Relates #107862 Relates #107984
2024-05-23 04:02:34 -04:00
Kostas Krikellas
7e09df7b2c
Store source for nested objects (#108818)
* Store source for nested objects

* Update docs/changelog/108818.yaml

* fix NestedObjectMapper

* more tests

* refactor

* propagate clonedSource

* add comment
2024-05-22 16:47:11 +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
Moritz Mack
2a8a723d38
Remove support to skip by version in YAML REST tests. (#108351)
Please visit the YAML REST api spec documentation on how to skip tests
based on cluster features:
https://github.com/elastic/elasticsearch/tree/main/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test#skipping-tests

For backwards compatibility, skip version is still permitted for v7 REST
compatibility tests.
2024-05-22 13:37:46 +02:00
elasticsearchmachine
7bd291d726 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-21 10:01:52 +00:00
Niels Bauman
f832eb8d60
Fix assertion in Health API YAML test (#108843) 2024-05-21 10:39:20 +02:00
David Turner
49a253fa1a
Expose ?master_timeout in autoscaling APIs (#108759)
Relates #107984
2024-05-21 04:24:08 -04:00
Niels Bauman
e44ee4f5e0
Extend the Health API basic YAML tests (#108811)
The health node might not have received the health info from all
nodes yet before the execution of this test, resulting in an
"unknown" status. We make the status assertion more lenient to
allow for this uncertainty. Additionally, we add some more
assertions for the basic response structure of the other indicators.
2024-05-21 08:12:44 +02:00
elasticsearchmachine
c9cd48ad97 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-18 10:01:36 +00:00
Oleksandr Kolomiiets
a454ac1987
Do not produce infinity values in synthetic source for range fields (#108699) 2024-05-17 09:19:14 -07:00
Jedr Blaszyk
bb5cac9e64
[Connector API] Improve create connector endpoints (#108766) 2024-05-17 15:30:14 +02:00
Moritz Mack
83e8fb130f
Polish docs on skipping YAML REST tests (#108752) 2024-05-17 14:42:41 +02:00
David Turner
48e2de5cc4
Add some missing timeout params to REST API specs (#108761) 2024-05-17 13:39:20 +01:00
Ievgen Degtiarenko
b3b245e501
Fix Create a snapshot spec (#108768)
Prior to this change the shard might have been moved after restoring.
As a result we were getting an array with 2 recoveries (SNAPSHOT and PEER).
This change ensures the shard is not moved after restoring snapshot.
2024-05-17 14:37:50 +02:00
Kostas Krikellas
99e8c27d84
Track source for arrays of objects (#108417)
* Track source for arrays of objects

* Update docs/changelog/108417.yaml

* add missing field name

* add missing field name

* refactor and add test

* merge changes from main

* revert unintended

* add tests

* small refactor

* small refactor

* check for synthetic source

* test setting sourceStored

* order fields

* small refactor

* small refactoring and more tests

* small test fix
2024-05-17 14:42:31 +03:00
Chris Hegarty
3faa63e4f8
Refactor custom ES814HnswScalarQuantizedVectorsFormat to use the FlatVectorsScorer API (#108576)
This commit removes the copy of the ScalarQuantizedVectorsWriter that we added in 8.14, in favour of a custom FlatVectorsScorer.

Previously we maintained the copy of the writer so that we could add a custom scorer implementation when merging scalar quantized vectors. This is not necessary now as we can provide a FlatVectorsScorer implementation that provides the custom scorer.
2024-05-17 10:09:26 +01:00
elasticsearchmachine
f44b97b127 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-16 16:20:50 +00:00
Moritz Mack
e4c6b0f15a
Document usage of Capabilities API in YAML REST tests (#108702) 2024-05-16 16:00:26 +02:00
elasticsearchmachine
a14514c176 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-16 10:01:28 +00:00
Moritz Mack
fd2ba451bc
Require 'capabilities' test runner feature if using capabilities check (#108678) 2024-05-16 10:06:54 +02:00
elasticsearchmachine
46a9663957 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-14 10:01:36 +00:00
Moritz Mack
c0d419d335
Remove obsolete YAML test cases (#108357) 2024-05-14 08:37:17 +02:00
ChrisHegarty
e8faece732 Merge branch 'main' into lucene_snapshot 2024-05-13 11:35:51 +01:00
Simon Cooper
d6cb12ec8f
Properly support capabilities checks with mixed version clusters (#108513)
When a capabilities check is done on a cluster with some nodes that do not support capabilities, always return false
2024-05-10 16:29:01 +01:00
Simon Cooper
7e38ee13d5
Mute capabilities yaml test (#108511) 2024-05-10 15:07:01 +01:00
Moritz Mack
d2d1357a33
Expose capability checks for YAML REST tests (#108425)
Co-authored-by: Simon Cooper <simon.cooper@elastic.co>
2024-05-10 12:37:54 +02:00
Jim Ferenczi
da50207faa
Handle must_not clauses when disabling the weight matches highlighting mode (#108453)
This change makes sure we check all queries, even the must_not ones, to decide if we should disable weight matches highlighting or not.

Closes #101667
Closes #106693
2024-05-10 08:47:40 +01:00
Mayya Sharipova
2337eb05a0
Unified Highlighter to support matched_fields (#107640)
Add support to the Unified highlighter to combine matches on multiple fields
to highlight a single field: "matched_fields".

Based on Lucene PR: https://github.com/apache/lucene/pull/13268

Lucene PR is based on the concept of masked fields where masked fields
are different from the original highlighted field. This PR in
Elasticsearch uses the already existing highlighter parameter
"matched_fields".
2024-05-09 10:35:29 -04:00
elasticsearchmachine
1d9cbbcded Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-08 10:01:34 +00:00
Moritz Mack
bc49a1fbf3
Update YAML REST docs: Synthetic version features are available up to 8.15.0 (#108375) 2024-05-08 07:01:17 +02:00
ChrisHegarty
bdcdd2e8b9 Merge branch 'main' into lucene_snapshot 2024-05-07 12:50:34 +01:00
Moritz Mack
b71fc0c561
Migrate remaining usage of skip version in YAML specs to cluster_features (#108055) 2024-05-07 09:42:17 +02:00
elasticsearchmachine
e42f38c5c7 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-02 10:01:20 +00:00
David Kyle
53252c67b3
[ML] Remove mention of models in inference actions (#107704)
Renames the GET, PUT and DELETE inference APIs removing the model parts:
inference.delete_model -> inference.delete
inference.get_model -> inference.get
inference.put -> inference.put
The GET response now has a endpoints field instead of models
2024-05-01 15:46:50 +01:00
elasticsearchmachine
2f6283d181 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-01 10:02:01 +00:00
Kostas Krikellas
098f1fd960
Track synthetic source for disabled objects (#108051)
* Track synthetic source for disabled objects

* Update docs/changelog/108051.yaml

* minor refactor

* remove redundant method

* no need to skipChildren

* add mixed test

* add mixed yaml test

* remove extra line
2024-05-01 08:59:28 +03:00
Oleksandr Kolomiiets
a810f87235
Fix off by one error when handling null values in range fields (#107977) 2024-04-30 13:39:37 -07:00
ChrisHegarty
5596151e18 Merge branch 'main' into lucene_snapshot 2024-04-30 12:04:17 +01:00
Ioana Tagirta
e784706b4e
Allow typed_keys for search application Search API (#108007)
* Allow typed_keys for search application Search API

* Update docs/changelog/108007.yaml

* Use RestSearchAction.TYPED_KEYS_PARAM
2024-04-30 11:31:45 +02:00