Mailing List Archive

[jira] [Resolved] (SOLR-3416) HTTP ERROR 400. Problem accessing /solr/select/. Reason: undefined field text
[ https://issues.apache.org/jira/browse/SOLR-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McKinley resolved SOLR-3416.
---------------------------------

Resolution: Invalid

I'm guessing your schema has the default search field set to "text" -- try changing that to a field that is in your schema.

Also, these questions are better asked on the user mailing list

> HTTP ERROR 400. Problem accessing /solr/select/. Reason: undefined field text
> ---------------------------------------------------------------------------------
>
> Key: SOLR-3416
> URL: https://issues.apache.org/jira/browse/SOLR-3416
> Project: Solr
> Issue Type: Bug
> Environment: Fedora 13 (Goddard)
> Reporter: uday shankar singh
> Labels: apche, jetty, nutch, solr
>
> I've got a Solr instance running on my Ubuntu machine using the default Jetty server that the Solr download comes with. Whenever I start Solr using
> java -jar start.jar
> The server starts fine but there is always an exception thrown:
> INFO: SolrUpdateServlet.init() done
> 2012-04-26 11:36:59.630:INFO::Started SocketConnector@0.0.0.0:8983
> Apr 26, 2012 11:37:14 AM org.apache.solr.common.SolrException log
> SEVERE: org.apache.solr.common.SolrException: undefined field text
> As I said though, the server will still start and I can see the Solr admin interface. I defined my schema as follows.
> <fields>
> <field name="id" type="string" indexed="true" stored="true" />
> <field name="phraseID" type="int" indexed="true" stored="true" />
> <field name="translation" type="string" indexed="true" stored="true" />
> </fields>
> <uniqueKey>id</uniqueKey>
> When I attempt to run a query USING Admin interface,
> the defualt query i.e *.* or from the url using:
> http://localhost:8983/solr/select/?q=*:*&version=2.2&start=0&rows=10&indent=on
> It correctly returns all the data that I crawled using Nutch
> However, the moment I try to query using text in the admin interface or through the url I receive an HTTP ERROR 404.
> url: http://localhost:8983/solr/select/?q=fruit&version=2.2&start=0&rows=10&indent=on
> --- returns ---
> HTTP ERROR 400
> Problem accessing /solr/select/. Reason:
> undefined field text
> Powered by Jetty://

--
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
[jira] [Resolved] (SOLR-3416) HTTP ERROR 400. Problem accessing /solr/select/. Reason: undefined field text [ In reply to ]
[ https://issues.apache.org/jira/browse/SOLR-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McKinley resolved SOLR-3416.
---------------------------------

Resolution: Invalid

> HTTP ERROR 400. Problem accessing /solr/select/. Reason: undefined field text
> ---------------------------------------------------------------------------------
>
> Key: SOLR-3416
> URL: https://issues.apache.org/jira/browse/SOLR-3416
> Project: Solr
> Issue Type: Bug
> Environment: Fedora 13 (Goddard)
> Reporter: uday shankar singh
> Labels: apche, jetty, nutch, solr
>
> I've got a Solr instance running on my Ubuntu machine using the default Jetty server that the Solr download comes with. Whenever I start Solr using
> java -jar start.jar
> The server starts fine but there is always an exception thrown:
> INFO: SolrUpdateServlet.init() done
> 2012-04-26 11:36:59.630:INFO::Started SocketConnector@0.0.0.0:8983
> Apr 26, 2012 11:37:14 AM org.apache.solr.common.SolrException log
> SEVERE: org.apache.solr.common.SolrException: undefined field text
> As I said though, the server will still start and I can see the Solr admin interface. I defined my schema as follows.
> <fields>
> <field name="id" type="string" indexed="true" stored="true" />
> <field name="phraseID" type="int" indexed="true" stored="true" />
> <field name="translation" type="string" indexed="true" stored="true" />
> </fields>
> <uniqueKey>id</uniqueKey>
> When I attempt to run a query USING Admin interface,
> the defualt query i.e *.* or from the url using:
> http://localhost:8983/solr/select/?q=*:*&version=2.2&start=0&rows=10&indent=on
> It correctly returns all the data that I crawled using Nutch
> However, the moment I try to query using text in the admin interface or through the url I receive an HTTP ERROR 404.
> url: http://localhost:8983/solr/select/?q=fruit&version=2.2&start=0&rows=10&indent=on
> --- returns ---
> HTTP ERROR 400
> Problem accessing /solr/select/. Reason:
> undefined field text
> Powered by Jetty://

--
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