Skip to content

Delivery API: Fix numeric and date based filters#15286

Merged
elit0451 merged 2 commits intorelease/13.0from
v13/fix/delivery-api-numeric-date-filters
Nov 27, 2023
Merged

Delivery API: Fix numeric and date based filters#15286
elit0451 merged 2 commits intorelease/13.0from
v13/fix/delivery-api-numeric-date-filters

Conversation

@kjac
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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
@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