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

Refactored query parsing to support all OpenSearch queries #987

Merged
merged 9 commits into from
Jul 15, 2024

Conversation

kyle-sammons
Copy link
Collaborator

Summary

This PR refactors query parsing to support all OpenSearch queries by making use of their query parsing libraries. This still maintains support for the old query path should people want to use that, but that path will likely be remove in the near future.

While this doesn't totally resolve our OpenSearch API compatibility issues (see: #798), it does get us remarkably closer

Requirements

@kyle-sammons kyle-sammons force-pushed the ksammons-astra-query-parsing-refactor-part-1 branch from ec4bd6b to c888a75 Compare July 12, 2024 18:24
@kyle-sammons kyle-sammons requested a review from bryanlb July 12, 2024 18:26
Copy link
Contributor

@bryanlb bryanlb left a comment

Choose a reason for hiding this comment

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

Couple questions, and a few suggestions but otherwise looks good. 👍

// setting lenient=false will not throw error when the query fails to parse against
// numeric fields
queryStringQueryBuilder.lenient(false);
} else {
// The _all field is the default field for all queries. If we explicitly don't want
Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh, good find

@kyle-sammons kyle-sammons merged commit 795fd24 into master Jul 15, 2024
2 checks passed
@kyle-sammons kyle-sammons deleted the ksammons-astra-query-parsing-refactor-part-1 branch July 15, 2024 18:55
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