Solr Query - HTTP error 404 undefined field text

后端 未结 5 1463
春和景丽
春和景丽 2020-12-24 07:18

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

5条回答
  •  时光取名叫无心
    2020-12-24 07:44

    I had the same problem. In case there is no in the solrconfig.xml file, look for the /select handler.

    Within that you would find something like this

    text
    

    That is the culprit. df means the default field and it, by default, and agreeably, quite stupidly, is set to a field called text which many might not have.

    Remove it and replace it with whatever is to be your default search field.

提交回复
热议问题