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

David Smiley commented on SOLR-10942:
-------------------------------------

If you want to use the /country request handler, your request should be issued 
to the path /solr/core2/country *not* /solr/core2/select.  Have 
handleSelect=false in {{<requestDispatcher>}} (hopefully it'll default to this 
and/or go away some day soon).  

Both of the queries you issued are actually going to /select and thus have no 
qf/df and so it was in error since your query was otherwise ambiguous as to 
which field.  This is an example, by the way, of how removing the 
defaultSearchField from the schema (now gone in 7.0) is a good thing.  It 
surfaces incorrect queries faster.

> qt param is not working partially in solr5.5
> --------------------------------------------
>
>                 Key: SOLR-10942
>                 URL: https://issues.apache.org/jira/browse/SOLR-10942
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 5.5
>            Reporter: Pavithra Dhakshinamurthy
>
> qt param is working fine if fieldname is provided with the request, but it is 
> not working if just the search term is provided. 
> For Example: 
> http://localhost:8983/solr/core2/select?q=states&wt=xml&indent=true&qt=/country
>   is not working, where as 
> http://localhost:8983/solr/core2/select?q=countryName:states&wt=xml&indent=true&qt=/country
>    is working. 
> Does any body faced this issue?
> This is how we have defined the request handler
>  <requestHandler name="/country" class="solr.SearchHandler">
>       <lst name="defaults">
>          <str name="echoParams">explicit</str>
>          <int name="rows">10</int>
>          <str name="defType">edismax</str>
>          <str name="qf">countryName^100 countryCode^60 addrcountry^20 
> mailaddresscountry^20</str>
>       </lst>
>    </requestHandler>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to