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 (Commented) (JIRA)" <ji...@apache.org> on 2011/11/21 23:41:44 UTC

[jira] [Commented] (SOLR-2910) PingRequest fails if there is no defaultSearchField in the schema.xml

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

Hoss Man commented on SOLR-2910:
--------------------------------

This sounds like a user configuration error.

the ping request handler just executes whatever query it's configured to execute (in solrconfig.xml) ... whatever query you have configured for the "/admin/ping" handler needs to be something that actually works with your schema.xml (ie: if you don't have a default search field, then your ping query needs to have an explicit field, or use \*:\*, etc...)
                
> PingRequest fails if there is no defaultSearchField in the schema.xml
> ---------------------------------------------------------------------
>
>                 Key: SOLR-2910
>                 URL: https://issues.apache.org/jira/browse/SOLR-2910
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>
> PingRequest fails if there is no defaultSearchField in the schema.xml
> CommonsHttpSolrServer#ping produces:
> org.apache.solr.common.SolrException: Ping query caused exception: no field name specified in query and no defaultSearchField defined in schema.xml
> at org.apache.solr.handler.PingRequestHandler.handleRequestBody(PingRequestHandler.java:77)
> at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1407)
> at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:353)
> ...
> request: http://127.0.0.1:8983/solr/a1/admin/ping?wt=javabin&version=2'

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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