Tag Archives: Solr Error

[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

[Solved] Solr Error: non ok status: 413, message:FULL head,

Solr search engine is used in the project. When too many FQ filtering conditions are found, the query will report an exception, non OK status: 413, message: full head. This exception is caused by too many conditions during the query, resulting in insufficient head of the request

Solution: new httpsolrclient(). Query(), which is a get request by default. The number of conditions that a get request can carry is relatively small. It needs to be specified as a post request, that is, new httpsolrclient(). Query (query, solrrequest. Method. Post). In this way, the number of requests is relatively large. If it is not enough, the configuration file of Solr needs to be modified. The file path is solr-5.1.0/server/solr/configsets/, The & lt; maxBooleanClauses> 1024</ maxBooleanClauses> Attribute, increase 1024 to