`
nbing
  • 浏览: 8415 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Ping query caused exception: undefined field text

 
阅读更多
引用
It is not about field type "text". It is about field named "text".

You've changed the default field in config to "search_text". Please try renaming all references to "search_text" to "text". If this fixes the issue, then you know somewhere in the configuration you're referring to "text" field, possibly in solrconfig.xml as suggested in Solr Query - HTTP error 404 undefined field text


i have this in my solrconfig.xml file.

<requestHandler name="/admin/ping" class="solr.PingRequestHandler">
 <lst name="invariants">
  <str name="q">solrpingquery</str>
 </lst>
 <lst name="defaults">      
  <str name="echoParams">all</str>
  </lst>
</requestHandler>


If you haven't added this in schema.xml then add it

<field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics