[ 
https://issues.apache.org/jira/browse/SOLR-17057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17793437#comment-17793437
 ] 

ASF subversion and git services commented on SOLR-17057:
--------------------------------------------------------

Commit 79ad934ca9396cdd37bb60b0eab2ac2dc66786e7 in solr's branch 
refs/heads/branch_9_4 from David Smiley
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=79ad934ca93 ]

SOLR-17057: JSON Query regression of defType (#2045)

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.


> JSON Query regression; defType doesn't work in "params"
> -------------------------------------------------------
>
>                 Key: SOLR-17057
>                 URL: https://issues.apache.org/jira/browse/SOLR-17057
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: JSON Request API
>    Affects Versions: 9.4
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The following test fails ("undefined field all") but used to work prior to 
> SOLR-16916:
> {code:java}
>     client.testJQ(
>         params(
>             "json", "{\n"
>                 + "    'query': '+all:NY',\n"
>                 + "    'fields': '*',\n"
>                 + "    'offset': 0,\n"
>                 + "    'limit': 10,\n"
>                 + "    'params': {\n"
>                 + "        'defType': 'edismax',\n"
>                 + "        'f.all.qf': 'id cat_s where_s'\n"
>                 + "   }\n"
>                 + "}"
>         ),
>         "response/numFound==2"
>     );
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to