Lorenzo Verardo
02a6c831e1
Limit the value in prefix query ( #108537 )
...
Reuse the setting index.max_regex_length for the max length in a prefix query.
Closes #108486
2024-06-05 14:51:07 -04:00
Martijn van Groningen
ac6c0eecc1
Ensure synthetic source and dv codec are enabled with logs index mode (attempt 2). ( #109382 )
...
This was initially muted via #109365 , because of a failing newly introduced assert.
Original PR #109269
2024-06-05 17:32:14 +02:00
Oleksandr Kolomiiets
f1153b1f8d
Revert "Ensure synthetic source and dv codec are enabled with logs index mode. ( #109269 )" ( #109365 )
...
This reverts commit 4161e4d2e2
.
2024-06-04 12:45:08 -07:00
Martijn van Groningen
4161e4d2e2
Ensure synthetic source and dv codec are enabled with logs index mode. ( #109269 )
...
After running the elastic/logs track with logs index mode enabled, I noticed that _source was still getting stored.
The issue was that other index modes than time_series weren't propagated to Indexmetadata and IndexSettings classes. Additionally the synthetic source defaults in SourceFieldMapper were geared towards time series index mode only. This change addresses this.
2024-06-04 16:06:19 +02:00
Jedr Blaszyk
d543d91f02
[Connector API] Implement _features endpoint ( #109248 )
2024-06-04 11:58:37 +02:00
David Turner
3f23c15180
Fix misc trappy allocation API timeouts ( #109241 )
...
Get/delete desired balance and get-allocation-stats APIs
Relates #107984
2024-05-31 08:04:57 -04:00
David Turner
0177a0c8ae
Fix trappy timeout in allocation explain API ( #109240 )
...
Relates #107984
2024-05-31 07:49:44 -04:00
Salvatore Campagna
f11ef44084
Introduce logs
index mode as Tech Preview ( #108896 )
...
This PR introduces a new index mode, `logs`, which enables usage of LogsDB in Elasticsearch.
As a result of adopting the `logs` index mode, default index sorting is applied using the hostname
and @timestamp fields. Users are allowed, anyway, to override index sort settings.
By default, it will also use synthetic source and the same codecs used by TSDB.
Note: the logs index mode is a Tech Preview feature.
2024-05-30 14:26:48 +02: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
Oleksandr Kolomiiets
42f4294a86
Enable fallback synthetic source for token_count ( #109044 )
2024-05-27 10:22:59 -07: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
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
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
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
Moritz Mack
e4c6b0f15a
Document usage of Capabilities API in YAML REST tests ( #108702 )
2024-05-16 16:00:26 +02:00
Moritz Mack
fd2ba451bc
Require 'capabilities' test runner feature if using capabilities check ( #108678 )
2024-05-16 10:06:54 +02:00
Moritz Mack
c0d419d335
Remove obsolete YAML test cases ( #108357 )
2024-05-14 08:37:17 +02: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
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
Moritz Mack
b71fc0c561
Migrate remaining usage of skip version in YAML specs to cluster_features ( #108055 )
2024-05-07 09:42:17 +02: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
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
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
Moritz Mack
f4fac1e545
Update README for YAML Rest API specs ( #107837 )
2024-04-30 10:53:53 +02:00
eyalkoren
ee262954ee
Adding aggregations support for the _ignored
field ( #101373 )
...
Enables aggregations on the _ignored metadata field replacing the stored field
with doc values.
2024-04-29 16:41:34 +02:00
Kostas Krikellas
68b5336e75
[TEST] restore synthetic source yaml test ( #107991 )
...
* [TEST] simplify synthetic source yaml test
* [TEST] restore synthetic source yaml test
2024-04-29 11:16:07 +03:00
Jim Ferenczi
4380cd1bd5
Allow rescorer with field collapsing ( #107779 )
...
This change adds the support for rescoring collapsed documents.
The rescoring is applied on the top document per group on each shard.
Closes #27243
2024-04-29 08:48:12 +01:00
Nhat Nguyen
01cc967ce9
Mute synthetic source YAML tests ( #107958 )
...
Relates #107567
2024-04-26 09:34:11 -07:00
Kostas Krikellas
0c41cb7e71
[TEST] simplify synthetic source yaml test ( #107949 )
2024-04-26 16:24:20 +03:00
Kostas Krikellas
3183e6d6c9
Add ignored field values to synthetic source ( #107567 )
...
* Add ignored field values to synthetic source
* Update docs/changelog/107567.yaml
* initialize map
* yaml fix
* add node feature
* add comments
* small fixes
* missing cluster feature in yaml
* constants for chars, stored fields
* remove duplicate method
* throw exception on parse failure
* remove Base64 encoding
* add assert on IgnoredValuesFieldMapper::write
* changes from review
* simplify logic
* add comment
* rename classes
* rename _ignored_values to _ignored_source
* rename _ignored_values to _ignored_source
2024-04-26 15:35:31 +03:00
Oleksandr Kolomiiets
4ef8b3825e
Revert "Format default values of IP ranges to match other range bound" ( #107910 )
...
This reverts commit acb5139
(a part of #107081 ). This commit impacts search behaviour for IP range fields and so needs to be reverted.
2024-04-25 10:27:32 -07:00
Oleksandr Kolomiiets
ee566e4f13
[TEST] Use GET API instead of search in range field synthetic source tests ( #107874 )
2024-04-24 14:08:21 -07:00