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

SOLR-17057: JSON Query regression of defType #2045

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

dsmiley
Copy link
Contributor

@dsmiley dsmiley commented Oct 27, 2023

If "query" is specified with a String (not JSON structure), "defType" should parse it. Since 9.4 defType was ignored.

https://issues.apache.org/jira/browse/SOLR-17057

If "query" is specified with a String (not JSON structure), "defType" should parse it.
Since 9.4 defType was ignored.
@dsmiley dsmiley requested a review from hossman October 27, 2023 00:58
Copy link
Contributor

@janhoy janhoy left a comment

Choose a reason for hiding this comment

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

Smells like a 9.4.1, yea

@treygrainger
Copy link
Contributor

+1 for a 9.4.1 release for this issue. I was just upgrading the code for the upcoming AI-Powered Search book, and the most of the book's query examples are now returning no results due to this issue: treygrainger/ai-powered-search#78

Works fine up through Solr 9.3, but most queries are broken with 9.4.0 since we use the edismax query parser through the JSON DSL for most queries.

@dsmiley dsmiley merged commit 60ff0fa into apache:main Dec 5, 2023
2 checks passed
@dsmiley dsmiley deleted the SOLR-17057-fixJsonQueryDefType branch December 5, 2023 04:21
dsmiley added a commit that referenced this pull request Dec 5, 2023
If "query" is specified with a String (not JSON structure), "defType" should parse it.
Since 9.4, defType was ignored.  Ignoring defType should have been conditional on the query being JSON structured.
dsmiley added a commit that referenced this pull request Dec 5, 2023
If "query" is specified with a String (not JSON structure), "defType" should parse it.
Since 9.4, defType was ignored.  Ignoring defType should have been conditional on the query being JSON structured.
@dsmiley
Copy link
Contributor Author

dsmiley commented Dec 7, 2023

(a 9.4.1 will happen)

@treygrainger
Copy link
Contributor

Thank you @dsmiley !

@noah-dbc
Copy link

Thanks, @dsmiley - looking forward to it! 🙏

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