Skip to content
Merged
Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
237eef5
Draft decay
timgrein Aug 12, 2025
af2df02
Adjust TODO
timgrein Aug 12, 2025
c3b257c
Add Evaluators
timgrein Aug 12, 2025
6448db9
Do not allow null values for first argument in type resolution
timgrein Aug 12, 2025
3e84a74
[CI] Auto commit changes from spotless
Aug 12, 2025
83b035e
Fix some GeoPoint test cases
timgrein Aug 13, 2025
772295c
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 13, 2025
316ae6c
[CI] Auto commit changes from spotless
Aug 13, 2025
f74d1fb
Revert quaternary function change
timgrein Aug 13, 2025
8fe057f
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 13, 2025
21377de
Fix cartesian point unit test cases
timgrein Aug 13, 2025
3f0f944
Fix integration test
timgrein Aug 13, 2025
5b64b7b
[CI] Auto commit changes from spotless
Aug 13, 2025
af35b37
Fix date nanos unit tests
timgrein Aug 13, 2025
23eef67
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 13, 2025
bb845d6
Fix offset types and tests
timgrein Aug 13, 2025
88f9bbd
Add testSenaryFunctionNoOptionalArguments to EsqlFunctionRegistryTests
timgrein Aug 13, 2025
e313ece
[CI] Auto commit changes from spotless
Aug 13, 2025
950d9f5
Add decay tests to VerifierTests checking nullability of all function…
timgrein Aug 13, 2025
2efe85b
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 13, 2025
6bbe861
Remove addressed TODO
timgrein Aug 13, 2025
42890f6
[CI] Auto commit changes from spotless
Aug 13, 2025
19e6c8f
Add decay docs
timgrein Aug 19, 2025
1e7eda4
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 19, 2025
5981802
Adjust cartesian point scale and offset types to be numeric instead o…
timgrein Aug 20, 2025
9b8fe64
Remove date_period as offset/scale and constant fold time durations d…
timgrein Aug 22, 2025
2bbd16b
Add Int Linear, Exp and Gaussian test cases
timgrein Aug 22, 2025
1c7bda6
Remove addressed TODOs
timgrein Aug 22, 2025
89ca6a3
Add Long Linear testcases
timgrein Aug 22, 2025
1741a92
[CI] Auto commit changes from spotless
Aug 22, 2025
1d6b044
Add Long Exponential testcases
timgrein Aug 22, 2025
ff3a049
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 22, 2025
371a036
Add Long Gaussian testcases
timgrein Aug 22, 2025
4c4e7c7
Add Double Linear testcases
timgrein Aug 22, 2025
b892d44
Add Double Exponential testcases
timgrein Aug 22, 2025
f94cff0
Revert some changes in EsqlFunctionRegistry
timgrein Aug 22, 2025
8bdaa30
Add Double Gaussian testcases
timgrein Aug 22, 2025
f1d72ec
Add GeoPoint Linear testcases
timgrein Aug 22, 2025
2e87474
Add GeoPoint Exponential testcases
timgrein Aug 22, 2025
cd4d2d3
Add GeoPoint Gaussian testcases
timgrein Aug 22, 2025
6b548f3
[CI] Auto commit changes from spotless
Aug 22, 2025
e1cb42d
Add Cartesian Point Linear tests
timgrein Aug 25, 2025
e27906e
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 25, 2025
043f456
Add Cartesian Point Exponential/Gaussian tests
timgrein Aug 25, 2025
4439f36
[CI] Auto commit changes from spotless
Aug 25, 2025
bd226ab
Add Datetime Linear test cases
timgrein Aug 25, 2025
98dd0ba
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 25, 2025
f1fd907
Add Datetime Exponential test cases
timgrein Aug 25, 2025
3e74415
Add Datetime Gaussian test cases
timgrein Aug 25, 2025
a2e7d6e
Handle nanosecond precision and reduce number of conversions
timgrein Aug 26, 2025
e203536
Add DateNanos linear, exponential and gaussian test cases
timgrein Aug 26, 2025
4049e24
spotlessApply
timgrein Aug 26, 2025
ec10258
Remove new line from ScoreScriptUtils
timgrein Aug 26, 2025
d902aaa
Remove TODO
timgrein Aug 26, 2025
5e7ac2d
Guard Decay function behind Capability
timgrein Aug 26, 2025
6c38e1a
Small refactor for better readability
timgrein Aug 26, 2025
87acdc3
Merge branch 'main' into esql-decay-function
timgrein Aug 26, 2025
6367025
Remove TODO and spotlessApply
timgrein Aug 26, 2025
c13d9a3
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 26, 2025
7512e46
Make getOffsetFactory and getScaleFactory more readable by using earl…
timgrein Aug 26, 2025
05d1428
Remove addressed TODO
timgrein Aug 26, 2025
33ff785
Simplify getDefaultOffset
timgrein Aug 26, 2025
b480d11
spotlessApply & import fixes
timgrein Aug 26, 2025
a0b4b20
Merge branch 'main' into esql-decay-function
timgrein Aug 26, 2025
2d92ade
Update x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/…
timgrein Aug 27, 2025
f60980b
Update x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/…
timgrein Aug 27, 2025
4b876d7
Update x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/…
timgrein Aug 27, 2025
a4ec315
Update x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/…
timgrein Aug 27, 2025
0227a00
Add decay to search-functions.md
timgrein Aug 27, 2025
d82a6c2
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Aug 27, 2025
0e9e644
Add TODO
timgrein Aug 27, 2025
11ff2ba
Allow option entries with multiple possible types and use options ins…
timgrein Aug 29, 2025
1c30c6d
Merge pull request #3 from timgrein/esql-decay-function-map-params
timgrein Aug 29, 2025
0d448fb
Fix VerifierTests and make options really optional
timgrein Aug 29, 2025
ec81d9d
Simplify Options a bit
timgrein Aug 29, 2025
70ba298
Fix integration test
timgrein Aug 29, 2025
64a4563
Update some generated resources
timgrein Aug 29, 2025
04389ea
Remove SIXTH from TypeResolutions (not needed anymore)
timgrein Aug 29, 2025
f9c48c6
Merge branch 'main' into esql-decay-function
timgrein Sep 1, 2025
caa108c
Regenerate evaluators for ram usage estimation and use new Factory st…
timgrein Sep 1, 2025
f69a54b
Move Decay from fulltext package to new scalar.score package
timgrein Sep 1, 2025
bacb81d
Check that scale and offset are constant, if they're temporal after a…
timgrein Sep 1, 2025
7929e31
Remove some redundant null checks
timgrein Sep 1, 2025
e4e9672
Add test cases for defaults
timgrein Sep 2, 2025
6e4b077
Make every parameter except value fixed avoiding recalculations
timgrein Sep 2, 2025
393248d
Add integers data set and test multiple rows with decay
timgrein Sep 2, 2025
92e2877
Add random test cases (comparing to ScoreScriptUtils) to DecayTests, …
timgrein Sep 3, 2025
393430b
Add random test cases for date nanos
timgrein Sep 3, 2025
61e6db2
Remove integers data set and use employees in multi row decay tests
timgrein Sep 3, 2025
2f7d106
Update generated sources
timgrein Sep 3, 2025
5a703e7
Remove old generated sources (living under fulltext)
timgrein Sep 3, 2025
1353049
Add sum integration test
timgrein Sep 3, 2025
82a2783
Add different int evaluators for constant/non-constant scale/origin c…
timgrein Sep 4, 2025
d1434d1
Specify Locale.ROOT in randomDistance() in DecayTests
timgrein Sep 4, 2025
e3ce212
Remove non-applicable integration tests and evaluators
timgrein Sep 4, 2025
6a18dc1
Make DecayIntEvaluator work again with every parameter being fixed ex…
timgrein Sep 4, 2025
8f49880
Verify that origin and scale are literals after the logic plan was op…
timgrein Sep 4, 2025
3fbfac2
Only check null values in VerifierTests for decay(...)
timgrein Sep 4, 2025
d65bd35
Simplify Decay.resolveType
timgrein Sep 4, 2025
6d4e276
Add detailedDescription to Decay
timgrein Sep 4, 2025
4fe032c
Fix checkStyle errors
timgrein Sep 4, 2025
f7ce694
Merge branch 'main' into esql-decay-function
timgrein Sep 4, 2025
f963be1
Fix checkStyle errors
timgrein Sep 4, 2025
0900503
Remove unused constant evaluators
timgrein Sep 5, 2025
28f16eb
Remove unused constant evaluators
timgrein Sep 5, 2025
d93e573
Remove unused mapping
timgrein Sep 5, 2025
c723309
Use enum for DecayFunction instead of switch statements
timgrein Sep 5, 2025
7477619
[CI] Auto commit changes from spotless
Sep 5, 2025
a99587e
Make decay csv tests work for GenerativeForkRestTest, when results ar…
timgrein Sep 5, 2025
5977e06
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Sep 5, 2025
f943253
Add generated detailed description
timgrein Sep 5, 2025
918f900
Make DecayTests more robust using closeTo(..., Math.ulp(...)) instead…
timgrein Sep 5, 2025
ef6e4ff
Merge branch 'main' into esql-decay-function
timgrein Sep 5, 2025
1c6c444
Remove addressed TODO
timgrein Sep 5, 2025
811385b
Fix rounding
timgrein Sep 5, 2025
9eeb07f
Reduce precision a bit in some decay test cases
timgrein Sep 8, 2025
7b03a02
Merge branch 'main' into esql-decay-function
timgrein Sep 8, 2025
65fb315
Remove constant fold check for options (they're always constant)
timgrein Sep 8, 2025
0a59d4e
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Sep 8, 2025
c1fc10b
Pass DecayFunction to evaluators directly instead of BytesRef
timgrein Sep 8, 2025
434cba4
Update usage test for snapshot version (no. of ES|QL functions)
timgrein Sep 8, 2025
d64111a
Merge branch 'main' into esql-decay-function
timgrein Sep 8, 2025
e4d2bd7
Readd spatial_grid_intersects capability
timgrein Sep 8, 2025
95b1f39
Merge remote-tracking branch 'origin/esql-decay-function' into esql-d…
timgrein Sep 8, 2025
33ac8f3
Fix merge resolution
timgrein Sep 8, 2025
8e9554c
Sort results in intMultipleRows (hopefully fixes a failing integratio…
timgrein Sep 8, 2025
3fdc0ce
Merge branch 'main' into esql-decay-function
timgrein Sep 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
* [`MATCH`](../../functions-operators/search-functions.md#esql-match)
* [`MATCH_PHRASE`](../../functions-operators/search-functions.md#esql-match_phrase)
* [`QSTR`](../../functions-operators/search-functions.md#esql-qstr)
% * [preview] [`DECAY`](../../functions-operators/search-functions.md#esql-decay)
% * [preview] [`TERM`](../../functions-operators/search-functions.md#esql-term)
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ our [hands-on tutorial](/reference/query-languages/esql/esql-search-tutorial.md)
For a high-level overview of search functionalities in {{esql}}, and to learn about relevance scoring, refer to [{{esql}} for search](docs-content://solutions/search/esql-for-search.md#esql-for-search-scoring).
:::

{{esql}} provides a set of functions for performing searching on text fields.
{{esql}} provides a set of functions for performing searching on text fields.

Use these functions
for [full-text search](docs-content://solutions/search/full-text.md)
Expand All @@ -36,6 +36,7 @@ for information on the limitations of full text search.
:::{include} ../_snippets/lists/search-functions.md
:::


:::{include} ../_snippets/functions/layout/kql.md
:::

Expand All @@ -54,3 +55,8 @@ lists/search-functions.md
% :::{include} ../_snippets/functions/layout/term.md
% :::

% DECAY is currently a hidden feature
% To make it visible again, uncomment this and the line in
lists/search-functions.md
% :::{include} ../_snippets/functions/layout/decay.md
% :::
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading