You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2013/08/12 20:00:53 UTC
[jira] [Commented] (SOLR-5138) requestHandler (qt) is not passing q
when defined in solrconfig.xml
[ https://issues.apache.org/jira/browse/SOLR-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13737117#comment-13737117 ]
Hoss Man commented on SOLR-5138:
--------------------------------
1) the example requestHandler config you declared isn't valid XML.
2) with teh following solrconfig.xml, i get the exact same behavior in Solr 3.6.2 as i get in from the head of hte 4x branch...
http://localhost:8983/solr/select?echoParams=all&qt=providerdetails&rows=0
{code}
<?xml version="1.0" encoding="UTF-8" ?>
<config>
<luceneMatchVersion>LUCENE_36</luceneMatchVersion>
<requestDispatcher handleSelect="true">
<requestParsers enableRemoteStreaming="true"
multipartUploadLimitInKB="2048000" />
</requestDispatcher>
<requestHandler name="providerdetails" class="solr.SearchHandler">
<lst name="defaults">
<str name="q">*:*</str>
<str name="defType">lucene</str>
<str name="echoParams">none</str>
<str name="wt">json</str>
</lst>
</requestHandler>
</config>
{code}
http://localhost:8983/solr/select?echoParams=all&qt=providerdetails&rows=0
{code}
{"responseHeader":{"status":0,"QTime":1,"params":{"echoParams":"all","q":"*:*","wt":"json","defType":"lucene","qt":"providerdetails","rows":"0","echoParams":"all"}},"response":{"numFound":21,"start":0,"docs":[]}}
{code}
...if you are seeing differnet behavior between 3.6 and 4.x wit hteh same request handler definition, then i suspect you have other descrepencies between the solrconfig.xml files you are using -- most likeley related to the "handleSelect" attribute on request dispatching, and/or you have a requestHandler named "/select" defined.
(that's what i would suspect given your description of what you see from 4.x -- if you do in fact have a handler named "/select" then it, and it's defaults, will be used to process your request -- and it won't ever even look at your "qt" param.)
> requestHandler (qt) is not passing q when defined in solrconfig.xml
> -------------------------------------------------------------------
>
> Key: SOLR-5138
> URL: https://issues.apache.org/jira/browse/SOLR-5138
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.5
> Environment: OS: Linux 2.6.32-358.6.1.el6.x86_64 #1 SMP Tue Apr 23 19:29:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> SOLR: 4.5-SNAPSHOT 1511470M - 2013-08-07 18:30:52
> Reporter: Bill Bell
> Priority: Critical
>
> We have this qt defined:
> <requestHandler name="providerdetails" class="solr.SearchHandler">
> <lst name="defaults">
> <str name="q">*:*</str>
> <str name="defType">lucene</str>
> <str name="echoParams">none</str>
> <str name="wt">json</str>
> </requestHandler>
> When called like this http://localhost:8080/solr/provider/select?echoParams=ALL&fq=pwid:xlkm7&wt=xml&qt=providerdetails the q does not seem to be recognized and no results are returned unless the q is explicitly set. In SOLR 3.6 the q is seen by the request handler.
> SOLR 4.5 (4.5-SNAPSHOT 1511470M - 2013-08-07 18:30:52) returns this - note that q=*:* is missing:
> <response><lst name="responseHeader"><int name="status">0</int><int name="QTime">1</int><lst name="params"><str name="echoParams">ALL</str><str name="echoParams">ALL</str><str name="qt">providerdetails</str><str name="wt">xml</str><str name="fq">pwid:xlkm7</str></lst></lst><result name="response" numFound="0" start="0"/></response>
> 3.6.2 returns the following - note q=*:* is shown:
> <lst name="responseHeader"><int name="status">0</int><int name="QTime">1</int><lst name="params"><str name="echoParams">ALL</str><str name="q">*:*</str><str name="wt">xml</str><str name="echoParams">ALL</str><str name="wt">xml</str><str name="qt">providerdetails</str><str name="fq">pwid:xlkm7</str></lst></lst>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org