solr 5.5.0 org.apache.solr.common.SolrException: undefined field text

March 1, 2016 1.6k views
Apache
   I am using solr 5.5.0 am getting this error 
    org.apache.solr.common.SolrException: undefined field text
        at org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1278)

    i want to use any other software to fetch all records?
    How to fix this error 



<dataConfig>
      <dataSource  driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/"  user="" password=""/>

     <document name="user"> 
        <entity name="user" pk="id"   query="select id,name from user">
           <field column="id" name="id"/>
           <field column="name" name="name"/>  
      </entity>
      </document>
    </dataConfig>

am getting id only name is not appearing

output
response": {
"numFound": 38,
"start": 0,
"docs": [
{
"id": "1",
"version": 1527591675061338000
},
{

"error": {
"metadata": [
"error-class",
"org.apache.solr.common.SolrException",
"root-error-class",
"org.apache.solr.common.SolrException"
],
"msg": "undefined field text",
"code": 400
}
}

Be the first one to answer this question.