Export from solr: Unknown query parser 'xport'

╄→гoц情女王★ 提交于 2019-12-25 11:50:19

问题


I tried following this tutorial to export solr result set, but upon accessing the export url http://localhost:8983/solr/emails/export?q=*%3A*&sort=date+desc&fl=id I received the following error:

<response>
<lst name="responseHeader">
  <int name="status">400</int>
  <int name="QTime">17</int>
</lst>
<lst name="error">
  <str name="msg">Unknown query parser 'xport'</str>
  <int name="code">400</int>
</lst>
</response>

It seems for some reason that xport query parser isn't there.

Here's my system info:

  • Solr 4.9.0
  • Java 1.8.0_66

And the config that I added to solrconfig.xml, as per the tutorial:

<requestHandler name="/export" class="solr.SearchHandler">
  <lst name="invariants">
    <str name="rq">{!xport}</str>
    <str name="wt">xsort</str>
    <str name="distrib">false</str>
  </lst>
  <arr name="components">
    <str>query</str>
  </arr>
</requestHandler>

回答1:


This feature came in with Solr 4.10. SOLR-5244. You are on Solr 4.9, so it is not there yet.



来源:https://stackoverflow.com/questions/34125644/export-from-solr-unknown-query-parser-xport

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!