Commit d6f64a6
Add TOP_SNIPPETS function to return the best snippets for a field (elastic#138940)
* Add TOP_SNIPPETS function to return the best snippets for a field
* [CI] Auto commit changes from spotless
* Exclude top snippets from CSV tests
* Update docs/changelog/138940.yaml
* num words and num snippets must be positive integers
* PR feedback - create chunking settings and scorer in the evaluator
* Clarify query
* PR feedback - clean up tests
* Make top snippets work with CSV tests
* Add spec for null field
* [CI] Auto commit changes from spotless
* Add null input to verifier test
* Ensure verifier tests catch when num_words or num_snippets are not positive integers
* Checkstyle fix
---------
Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>1 parent 467bc2a commit d6f64a6
File tree
24 files changed
+1166
-50
lines changed- docs
- changelog
- reference/query-languages/esql
- _snippets/functions
- description
- examples
- functionNamedParams
- layout
- parameters
- types
- images/functions
- kibana
- definition/functions
- docs/functions
- x-pack/plugin
- core/src
- main/java/org/elasticsearch/xpack/core/common/chunks
- test/java/org/elasticsearch/xpack/core/common/chunks
- esql
- qa/testFixtures/src/main/resources
- src
- main
- generated/org/elasticsearch/xpack/esql/expression/function/scalar/string
- java/org/elasticsearch/xpack/esql
- action
- expression
- function
- scalar
- string
- util
- test/java/org/elasticsearch/xpack/esql
- analysis
- expression/function/scalar/string
- inference/src/main/java/org/elasticsearch/xpack/inference/rank/textsimilarity
24 files changed
+1166
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments