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

Delivery API: Fix numeric and date based filters #15286

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

kjac
Copy link
Contributor

@kjac kjac commented Nov 22, 2023

Prerequisites

  • I have added steps to test this contribution in the description below

Description

As-is, Delivery API filters do not work with numeric or date field types. This PR fixes it.

To keep things a little more manageable I have moved the generation of selector, filter and sort operations to their own separate classes. In the future we might make those replaceable via DI, but for the time being we'll consider them internal implementation details for the Examine based query provider.

Testing this PR

To test this you'll need two filters that query numeric and date field types respectively... and to have these field types in the index, you'll need to create indexers to match.

Or maybe just reach out to @kjac for a demo 😃

Copy link
Member

@elit0451 elit0451 left a comment

Choose a reason for hiding this comment

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

💪 💪 Great find, merging

@elit0451 elit0451 merged commit 92a8640 into release/13.0 Nov 27, 2023
13 checks passed
@elit0451 elit0451 deleted the v13/fix/delivery-api-numeric-date-filters branch November 27, 2023 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants