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

Search OData Filter Helper #15626

Merged

Conversation

alzimmermsft
Copy link
Member

Fixes #12110

This PR adds an OData filter helper to azure-search-documents which makes it easier to create valid OData expressions. A new utility class SearchFilter is added into the base package and has a single utility method create which accepts a formattable string, using the same style as String.format, and a varargs of parameters. It will automatically escape strings using OData string escaping and convert Float and Double special values NaN, POSITIVE_INFINITY, and NEGATIVE_INFINITY into the correct OData values.

Copy link
Member

@mssfang mssfang left a comment

Choose a reason for hiding this comment

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

LGTM!

@alzimmermsft alzimmermsft merged commit 98a94fb into Azure:master Sep 28, 2020
@alzimmermsft alzimmermsft deleted the AzSearch_ODataExpressionHelpers branch September 28, 2020 20:42
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-java that referenced this pull request Aug 26, 2021
[DataFactory]Support AmazonRdsForOracle Connector (Azure#15626)

* (Do Not Merge)【DataFactory】Support AmazonRdsForOracle Connector

* update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add SearchFilter helper to take correct odata filter expression
2 participants