Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ad hoc filters before sending Lucene queries to backend #225

Merged
merged 6 commits into from
Aug 1, 2023

Conversation

fridgepoet
Copy link
Member

@fridgepoet fridgepoet commented Jul 27, 2023

What this PR does / why we need it:
For Lucene queries which were recently migrated to the backend, this fixes ad hoc filters on queries which were redirected to the backend as part of this plugin's migration to a backend data source.

Ad hoc filters were only added in the frontend while building the query, so this code was not reached when diverting queries to the backend.

Here is a recording of this PR's behavior:

Screen.Recording.2023-07-31.at.13.00.55.mov

Which issue(s) this PR fixes:

Fixes #224

Special notes for your reviewer:
This PR should revert the behavior to the same as in v2.6.2 and before.
Ad hoc filtering will not return data for nested documents as this is not supported in the Lucene query language.

Thank you @idastambuk for all your help on this one!

@fridgepoet fridgepoet marked this pull request as ready for review July 31, 2023 09:44
@fridgepoet fridgepoet requested a review from a team as a code owner July 31, 2023 09:44
@fridgepoet fridgepoet requested review from iwysiu and idastambuk and removed request for a team July 31, 2023 09:44
@fridgepoet fridgepoet changed the title Add ad hoc filters before sending queries to backend Add ad hoc filters before sending Lucene queries to backend Jul 31, 2023
Copy link
Contributor

@idastambuk idastambuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
If you already haven't done it, maybe it would be good to add a task to the refactor epic to use the new adhoc processing for FE queries too? I take it back, everything will go though backend anyway!

@fridgepoet fridgepoet merged commit 0a63daf into main Aug 1, 2023
@fridgepoet fridgepoet deleted the adhoc-filters branch August 1, 2023 10:53
@fridgepoet fridgepoet mentioned this pull request Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ad hoc filters not applied to raw_data queries
2 participants