Commit graph

3241 commits

Author SHA1 Message Date
Rene Groeschke
3aa84159fc
Update Gradle wrapper to 8.10.1 (#112948) 2024-09-19 19:23:42 +02:00
Armin Braun
e5bcb0c5b3
Remove duplication in settings code and some minor setting speedups (#112897)
Some small speedups in here from pre-evaluating `isFiltered(properties)`
in lots of spots and not creating an unused `SimpleKey` in `toConcreteKey`
which runs a costly string interning at some rate.
Other than that, obvious deduplication using existing utilities or
adding obvious missing overloads for them.
2024-09-18 15:01:49 +02:00
Iraklis Psaroudakis
32937109ac
Support writeAtomicBlob from InputStream for repository blob container interface (#112754)
Mostly for fs and hdfs repos, similar to how writeAtomicBlob from
bytes is implemented (write temp file and rename atomically).

Relates ES-9248
2024-09-17 16:08:51 +03:00
Mark Vieira
a59c182f9f
Add AGPLv3 as a supported license 2024-09-13 15:29:46 -07:00
Kostas Krikellas
86a88d735f
Fix synthetic source field names for multi-fields (#112850)
* Fix synthetic source field names for multi-fields

* enable logsdb in randomized tests

* Revert "enable logsdb in randomized tests"

This reverts commit 2e2c22e2bb.

* Update docs/changelog/112850.yaml

* fix
2024-09-13 15:00:55 +03:00
Mark Vieira
4ce661cc48
Bump Elasticsearch version to 9.0.0 (#112570) 2024-09-11 09:40:11 -07:00
Oleksandr Kolomiiets
082e7211b3
Use fallback synthetic source for copy_to and doc_values: false cases (#112294) 2024-09-10 12:12:51 -07:00
David Turner
8f07d60c2c
Fix trappy timeouts in o.e.a.a.cluster.* (#112674)
Removes all usages of `TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUT` in
cluster-related APIs in `:server`.

Relates #107984
2024-09-10 08:17:09 +01:00
Sam Xiao
52bb54b7dc
Comment: Correct plugin examples comment (#112609)
Minor change to correct the comment for running YAML test in plugin examples.
2024-09-06 14:43:19 -04:00
Sam Xiao
7cd6de76f4
Adds example plugin for custom ingest processor (#112282)
* Adds example plugin for custom ingest processor

Adds an example for creating a plugin with a simple custom ingest
processor. The example processor repeats the value of an expected filed
in a document, or ignores it if the expected field does not exist.

Closes #111539
2024-09-06 12:05:52 -04:00
Kostas Krikellas
f3bc281978
Refactor build params for FieldMapper, adding SourceKeepMode (#112455)
* Refactor build params for FieldMapper

* more mappers and tests

* more mappers

* more mappers

* spotless

* spotless

* stored by default

* Revert "stored by default"

This reverts commit bbd247d64b.

* restore storeIgnored

* sync

* list valid values for SourceKeepMode

* small refactoring

* spotless
2024-09-06 14:16:17 +03:00
Joe Gallo
9b2bad3949
Update the gradlew stuff in plugins/examples (#112517) 2024-09-04 11:27:17 -04:00
Ryan Ernst
b000271885
Update expert script example with termStats (#112377)
This commit fixes compilation of the expert script example to implement
the new required method of score script making termStats available.
2024-08-30 10:11:24 -07:00
Oleksandr Kolomiiets
38adbb0724
Prevent synthetic field loaders accessing stored fields from using stale data (#112173) 2024-08-27 14:55:00 -07:00
Rene Groeschke
fb6c5a55dd
Update Gradle wrapper to 8.10 (#111736) 2024-08-22 12:15:22 +02:00
john-wagster
5510ad98f8
Updated Function Score Query Test with Explain Fixes for 8.15.1 (#111929)
* updated test for 8.15.1

* Update docs/changelog/111929.yaml

* Delete docs/changelog/111929.yaml
2024-08-16 00:55:52 +10:00
john-wagster
935c0e4e2b
Explain Function Score Query (#111807)
allowing for a custom explanation to be passed through as part of supporting building a plugin with a custom script score; previously threw an npe
2024-08-13 17:03:30 -05:00
Rene Groeschke
cb0ecb86df
Update Gradle wrapper to 8.9 (#110109) 2024-07-19 13:42:33 +02:00
Oleksandr Kolomiiets
349dac284a
Stop iterating over all fields to extract @timestamp value (#110603) 2024-07-11 09:24:53 -07:00
Luca Cavanna
915e4a50c5
Rename Mapper#name to Mapper#fullPath (#110040)
This addresses a long standing TODO that caused quite a few bugs over time, in that the mapper name does not include its full path, while the MappedFieldType name does.

We have renamed Mapper.Builder#name to leafName (#109971) and Mapper#simpleName to leafName (#110030). This commit renames Mapper#name to fullPath for clarity
This required some adjustments in FieldAliasMapper to avoid confusion between the existing path method and fullPath. I renamed path to targetPath for clarity.
ObjectMapper already had a fullPath method that returned name, and was effectively a copy of name, so it could be removed.
2024-06-21 22:47:27 +02:00
Luca Cavanna
54e7b4d93b
Rename Mapper#simpleName to Mapper#leafName (#110030)
This addresses a long standing TODO that caused quite a few bugs over time, in that the mapper name does not include its full path, while
the MappedFieldType name does. We have method called simpleName to signal that, but leafName signals that more clearly and aligns with
the name we have recently introduced in Mapper.Builder (renamed from name to leafName).

Relates to #109971
2024-06-21 14:28:36 +02:00
Luca Cavanna
15c7abe111
Rename Mapper#name to Mapper#leafName (#109971)
This addresses a long standing TODO that caused quite a few bugs over time, in that the mapper name does not include its full path, while
the MappedFieldType name does.
2024-06-21 11:48:17 +02:00
David Turner
5662f988b2
Remove trappy timeouts in snapshot APIs (#109828)
Wholesale fix of every `TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUT` in
`o.e.snapshots` and `o.e.repositories`, just pulling them up to the REST
layer (where they become API params), the test suite (where they become
`TEST_REQUEST_TIMEOUT`), or some other place where an explicit value is
available.

Relates #107984
2024-06-21 07:11:12 +10:00
Benjamin Trent
29288d6590 Merge remote-tracking branch 'upstream/main' into lucene_snapshot_9_11 2024-06-11 06:54:23 -04:00
Rene Groeschke
02439e321d
Update Gradle gradleEnterprise plugin (develocity now) (#109443)
* Update Gradle gradleEnterprise plugin (develocity now)
* Fix imports in build scan script
* Fix build scan api usage
* Dependency cleanup and API fix
* Fix API update for BuildResult in Build scans
* Fix buildkite buildscan annotations based on gradle failures
2024-06-10 14:26:43 +02:00
Benjamin Trent
cf84416fc5 Merge remote-tracking branch 'upstream/main' into lucene_snapshot_9_11 2024-06-04 12:50:52 -04:00
Rene Groeschke
8ac3e3dd90
Update Gradle wrapper to 8.8 (#108021)
Fix incompatibility with 8.8 and our internal api usages

- Update ospackage to a version that contains a fix we provided
- Tweak build logic to avoid deprecation warnings
- Use newer permission api
- Use custom shadowplugin
- Rework ElasticsearchDistribution dependencies resolution
- Update Gradle wrapper to 8.8
2024-06-04 12:43:02 +02:00
ChrisHegarty
066b8a4d26 Remove awaits fix 2024-05-28 15:16:10 +01:00
ChrisHegarty
12c61e4392 Mute test until Lucene bug is fixed 2024-05-27 16:35:42 +01:00
elasticsearchmachine
325bf47462 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-22 10:01:47 +00: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
ChrisHegarty
bdcdd2e8b9 Merge branch 'main' into lucene_snapshot 2024-05-07 12:50:34 +01:00
Jake Landis
19e3e732cd
Fix compilation issue for example plugins (#108270) 2024-05-03 16:36:11 -05:00
elasticsearchmachine
2f6283d181 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-05-01 10:02:01 +00:00
Oleksandr Kolomiiets
6c82f87074
Add test for docvalue_fields retrieval of murmur3 (#107880) 2024-04-30 08:07:48 -07:00
ChrisHegarty
5596151e18 Merge branch 'main' into lucene_snapshot 2024-04-30 12:04:17 +01: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
elasticsearchmachine
1799b7e426 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-04-27 10:02:13 +00:00
Oleksandr Kolomiiets
ca513b1752
Annotated text fields are stored by default with synthetic source (#107922)
This change follows existing implementation for text field.

Closes #107734.
2024-04-26 10:12:17 -07:00
elasticsearchmachine
18361d78c1 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-04-26 10:01:26 +00:00
Oleksandr Kolomiiets
e1d902d33b
Implement synthetic source support for annotated text field (#107735)
This PR adds synthetic source support for annotated_text fields. Existing implementation for text is reused including test infrastructure so the majority of the change is moving and making things accessible.

Contributes to #106460, #78744.
2024-04-25 10:31:27 -07:00
elasticsearchmachine
218f99fc2a Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-04-25 10:02:28 +00:00
David Turner
6f1e5547a4
Remove String-based timeout support (#107747)
Today various APIs accept both a `TimeValue` and a `String` to specify
the same timeout, with the API implementation taking care of the
conversion from `String` to `TimeValue`. This was convenient for users
of the transport client, but these days it's not necessary. This commit
removes the unnecessary overloads and parsing code and migrates all
callers to creating a proper `TimeValue`.
2024-04-25 10:57:35 +01:00
ChrisHegarty
ac69c0c6cb Merge remote-tracking branch 'upstream/main' into lucene_snapshot 2024-04-12 12:07:11 +01:00
Moritz Mack
1f5e04b721
Migrate YAML REST tests to synthetic cluster feature check (#107068)
To simplify the migration away from version based skip checks in YAML specs, 
this PR adds a synthetic version feature `gte_vX.Y.Z` for any version at or before 8.14.0.

New test specs for 8.14 or later are expected to use respective new cluster features,
or a test-only feature supplied via ESRestTestCase#createAdditionalFeatureSpecifications
if sufficient.
2024-04-11 18:22:38 +02:00
Adrien Grand
0915b6403e Merge branch 'main' into lucene_snapshot 2024-04-09 18:46:41 +02:00
Adrien Grand
62f19e3a0c
Disable dynamic pruning on unindexed fields. (#107194)
In order to know whether it can apply dynamic pruning using the points index,
Lucene simply looks at whether a field has points. Unfortunately, this doesn't
work well with our support for archive indexes, where numeric/date fields
report that they have points, but they only support metadata operations on
these points (min/max values, doc count), with the goal of quickly filtering
out such archive indexes during the `can_match` phase.

In order to address this discrepancy, dynamic pruning is now disabled when
mappings report that a field is not indexed. This works because archive indexes
automatically set `index: false` to make sure that filters run on doc values
and not points. However, this is not a great fix as this increases our reliance
on disabling dynamic pruning, which is currently marked as deprecated and
scheduled for removal in the next Lucene major. So we'll need to either add it
back to Lucene or find another approach.

Closes #107168
2024-04-09 17:01:32 +02:00
elasticsearchmachine
5ada023812 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-03-30 10:01:40 +00:00
Mark Vieira
cf9a333d3a
Remove unused code from example plugin (#106928) 2024-03-29 12:44:31 -07:00
elasticsearchmachine
9433882415 Merge remote-tracking branch 'origin/main' into lucene_snapshot 2024-03-27 10:01:57 +00:00