[ https://issues.apache.org/jira/browse/SOLR-16916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17780102#comment-17780102 ]
Chris M. Hostetter commented on SOLR-16916: ------------------------------------------- Thanks David: but i'm still really unclear about the core question(s) i asked... {quote}... what was intended to happen here? * ... * ... * ...{quote} The Jira summary/description ie: "JSON Query DSL doesn't work if defType isn't lucene" as a description of a problem that's been "Fixed" seems to directly contradict the CHANGES entry: "Use of the JSON Query DSL should ignore the defType parameter" Was the goal here to intentionally "ignore the defType parameter" or to "fix" some behavior that "broke in 7.2" when people want to use {{edismax}} with the JSON Query DSL? (As i mentioned, according to the user reports: using {{defTtype=edismax}} with JSON Query DSL worked just fine until this issue – so AFAICT the test added by this Jira just demonstrates that the change committed causes the ed{{{}ismax{}}} default to be ignored ... so i'm not sure what bug this was trying to fix) ---- I'd really like to clear this up so it's self documenting here in the Jira for anyone else who is confused by the new behavior and follows the same bread crumbs i did. > JSON Query DSL doesn't work if defType isn't lucene > --------------------------------------------------- > > Key: SOLR-16916 > URL: https://issues.apache.org/jira/browse/SOLR-16916 > Project: Solr > Issue Type: Bug > Components: query parsers > Affects Versions: 7.2 > Reporter: David Smiley > Assignee: David Smiley > Priority: Minor > Fix For: 9.4 > > Time Spent: 2h 10m > Remaining Estimate: 0h > > If the [JSON Query DSL|https://solr.apache.org/guide/8_4/json-query-dsl.html] > is used (POSTing JSON), it requires that the default "lucene" query parser is > used. If for some reason defType is set, like in the defaults section of the > request handler, then this doesn't work. Internally, the JSON is rewritten > to local-params syntax which requires the default parser, not another like > edismax. > This behavior broke in 7.2 when other parsers stopped processing local-params > in the name of security. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org