[
https://issues.apache.org/jira/browse/SOLR-7108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marius Grama updated SOLR-7108:
-------------------------------
Attachment: SOLR-7108.patch
Attached is a patch for the reported issue containing changes in the
configuration files, ImplicitPlugins.java as well as unit tests for accuracy
and failure of the PingRequestHandler.
I had a look on how the ping requests are handled and discovered within the
QueryComponent line 144
{code}
String defType = params.get(QueryParsing.DEFTYPE, QParserPlugin.DEFAULT_QTYPE);
{code}
that the default query parser is the lucene parser
({code}QParserPlugin.DEFAULT_QTYPE = lucene{code}) reason why the hint
{code}{!lucene}*:*{code}that the Lucene query parser should be used is not
necessary. This is why I used {code}*:*{code} query parameter value.
> Change PingRequestHandler hard-coded troublesome query
> ------------------------------------------------------
>
> Key: SOLR-7108
> URL: https://issues.apache.org/jira/browse/SOLR-7108
> Project: Solr
> Issue Type: Bug
> Affects Versions: 5.0
> Reporter: Erik Hatcher
> Assignee: Erik Hatcher
> Fix For: Trunk, 5.2
>
> Attachments: SOLR-7108.patch
>
>
> PingRequestHandler hard-codes this:
> {code}
> ping.initArgs.add(INVARIANTS, new NamedList<>(makeMap("echoParams", "all",
> "q", "solrpingquery")));
> {code}
> which unnecessarily relies on query parsing settings like default field. In
> the case of the basic_configs core this causes a failed request because df
> isn't set appropriately).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]