[Solved] Solr Error: org.apache.solr.common.SolrException: undefined field text

Modify solrconfig XML file

vim /solr/configsets/Your_collection_name/conf/solrconfig.xml

Find this paragraph:

<listener event="firstSearcher" class="solr.QuerySenderListener">
  <arr name="queries">
    <lst>
      <str name="q">static firstSearcher warming in solrconfig.xml</str>
    </lst>
  </arr>
</listener>

Modify <str name=”q”></str> The value of is *: *, which is modified as follows:

<listener event="firstSearcher" class="solr.QuerySenderListener">
  <arr name="queries">
    <lst>
      <str name="q">*:*</str>
    </lst>
  </arr>
</listener>

If zookeeper is used, you need to upload the configuration to zookeeper again:

/solr/server/scripts/cloud-scripts/zkcli.sh -cmd upconfig -zkhost Address 1:2181, Address 2:2181, Address 3:2181 -confdir /solr/configsets/your collection name/conf -confname your configuration name

Re create a new collection

Similar Posts: