Conversation
|
Pinging @elastic/ml-core (Team:ML) |
|
Hi @jan-elastic, I've created a changelog YAML for you. |
0faee91 to
b308397
Compare
ddf2f1f to
5ed9dfa
Compare
|
Hi @jan-elastic, I've created a changelog YAML for you. |
.../src/test/java/org/elasticsearch/compute/aggregation/blockhash/CategorizeBlockHashTests.java
Show resolved
Hide resolved
...va/org/elasticsearch/compute/aggregation/blockhash/CategorizePackedValuesBlockHashTests.java
Outdated
Show resolved
Hide resolved
.../main/java/org/elasticsearch/xpack/ml/aggs/categorization/SerializableTokenListCategory.java
Show resolved
Hide resolved
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/VerifierTests.java
Show resolved
Hide resolved
...esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Categorize.java
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
| return new CategorizeDef( | ||
| (String) optionsMap.get("analyzer"), |
There was a problem hiding this comment.
Can we validate the analyzer here?
There was a problem hiding this comment.
Not that I know of. You'd need the AnalysisRegistry here.
During execution, that comes via the EsPhysicalOperationProviders from the SearchService. I don't see how to obtain something similar at this stage.
There was a problem hiding this comment.
Ok! As it's checked now at planning time, no problem then
|
@jan-elastic FYI there's no v8.20.0 as of now. I removed your label |
|
@ghudgins does that mean we're not backporting new functionality anymore? Just bugfixes to 8.19.x? |
a154ede to
5300744
Compare
|
@ivancea Thanks for the thorough review. Fixed all you comments. PTAL |
...in/java/org/elasticsearch/compute/aggregation/blockhash/CategorizePackedValuesBlockHash.java
Show resolved
Hide resolved
...esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Categorize.java
Outdated
Show resolved
Hide resolved
...esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/grouping/Categorize.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/VerifierTests.java
Show resolved
Hide resolved
5300744 to
6248657
Compare
|
@bpintea Thanks for your review. Fixed all your comments |
6248657 to
db90b33
Compare
* ES|QL categorize options * refactor options * fix serialization * polish * add verfications * better test coverage + polish code * better test coverage + polish code
The categorizate text agg has some configuration options. ES|QL categorize does not.
This PR adds them with syntax comparable to options of the ES|QL
matchfunction.The exposed options are:
Furthermore, the options functionality of
matchis refactored to make it reusable.