Conversation
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
|
Hi @luigidellaquila, I've created a changelog YAML for you. |
|
@piergm It seems to work fine, but I have a doubt: I changed indicesOptions for the field_caps call (fan-out), but not for the subsequent This is where I prepare the search requests: https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/execution/search/RuntimeUtils.java#L189-L196 |
|
@luigidellaquila I have to take a deeper look, but I think we should do the same as we do for the field caps call. |
|
@piergm I added the same indices options to _search and it seems to be OK |
|
|
||
| @Override | ||
| public boolean allowsCrossProject() { | ||
| return true; |
There was a problem hiding this comment.
Should we make it conditional?
For cases when we are not running in CPS mode?
There was a problem hiding this comment.
My understanding is that this flag just indicates that the API can be used for CPS in general, but I don't know how Serverless will use it.
I see all the other enabled APIs have true.
Maybe @piergm can provide more details
There was a problem hiding this comment.
Returning true is fine here, it simply means that we can use this endpoint in CPS. We have a check in CrossProjectModeDecider#resolvesCrossProject that considers the return value of allowsCrossProject iff cross project is enabled for the project with the cluster level setting serverless.cross_project.enabled=true
piergm
left a comment
There was a problem hiding this comment.
Did a first high level review, changes looks good but I left few comments I'd like your take on! 😄
x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/action/EqlSearchRequest.java
Outdated
Show resolved
Hide resolved
|
|
||
| @Override | ||
| public boolean allowsCrossProject() { | ||
| return true; |
There was a problem hiding this comment.
Returning true is fine here, it simply means that we can use this endpoint in CPS. We have a check in CrossProjectModeDecider#resolvesCrossProject that considers the return value of allowsCrossProject iff cross project is enabled for the project with the cluster level setting serverless.cross_project.enabled=true
.../plugin/eql/src/main/java/org/elasticsearch/xpack/eql/execution/search/BasicQueryClient.java
Outdated
Show resolved
Hide resolved
.../plugin/eql/src/main/java/org/elasticsearch/xpack/eql/execution/search/BasicQueryClient.java
Outdated
Show resolved
Hide resolved
...ugin/eql/src/main/java/org/elasticsearch/xpack/eql/execution/search/PITAwareQueryClient.java
Outdated
Show resolved
Hide resolved
...ck/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/plugin/TransportEqlSearchAction.java
Show resolved
Hide resolved
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/index/IndexResolver.java
Outdated
Show resolved
Hide resolved
piergm
left a comment
There was a problem hiding this comment.
LGTM, thanks for the iterations 👍
|
Thanks @piergm @idegtiarenko! |
Event queries only for now, since PIT is not supported yet
Add CPS settings both to EQL action and to inner field_caps invocation
PIT is not ready for it yet, it will be managed with a follow-up PR