Closed (fixed)
Project:
Elasticsearch Connector
Version:
8.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2025 at 10:51 UTC
Updated:
12 May 2026 at 16:40 UTC
Jump to comment: Most recent
Comments
Comment #2
mparker17@filsterjisah, This sounds like a useful addition! Let me know if there's anything I can do to help!
Comment #4
filsterjisah commentedInstead of using the proposed solution in the description, I added a new AlterParamsEvent. This event is triggered immediately after
$params['track_total_hits'] = TRUE;allowing modifications to this parameter. Additionally, when we want to display the full Elastic query, this parameter is included as well.Comment #5
filsterjisah commentedComment #6
sokru commentedTests should be added.
Comment #7
mparker17Updated the issue title to capture the new scope. I also updated the issue summary.
I have yet to review this; I'm also going to see if I can add a test.
Off the top of my head, I may suggest we rename the event
AlterSearchQueryParamsEventfor clarity / disambiguation with other types of parameters (e.g.: when creating an index).Comment #8
mparker17I fixed a bug where changes to the parameters array were ignored. I also added some comments.
Then I wrote tests.
I do think it's worth renaming the event to
AlterSearchQueryParamsEvent; so if tests pass here, then I'll rename the event.Comment #9
mparker17Okay! The tests pass after the rename, so I think this is ready for community review.
@filsterjisah, I would greatly appreciate it if you could test the new changes, to make sure they work. Note you will have to alter the class name of the event you're listening to (i.e.: from
AlterParamsEventtoAlterSearchQueryParamsEvent). If it works, then please change the status of this ticket to "Reviewed & tested by the community".I will also create a 9.0.x merge request shortly.
Comment #11
mparker17Created a 9.0.x merge request, which I will merge to first. Adding a tag so I don't forget to merge to 8.0.x.
Comment #12
mparker17Added a change record; tagging so I remember to publish it.
Comment #13
mparker17I've cleaned up my own code a bit; apologies for the noise.
Comment #14
fathershawnThis looks correct! And it will allow the rule retriever code to easily move to a sub-module!
Comment #15
mparker17Awesome, thanks! I'll merge this shortly and publish the change record.
Comment #17
mparker17Merged to 9.0.x; merging to 8.0.x next.
Comment #19
mparker17Merged to 8.0.x and published the change record.
I will update this issue when this change is released!
Comment #21
mparker17The changes in this issue were released in elasticsearch_connector-9.0.0-alpha3, and elasticsearch_connector-8.0.0-alpha7