You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Marius Grama (JIRA)" <ji...@apache.org> on 2015/05/28 07:36:28 UTC
[jira] [Updated] (SOLR-7108) Change PingRequestHandler hard-coded
troublesome query
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org