Solr common exceptions

1.solr error logs org.apache.solr.common.SolrException: ERROR: [doc=17] unknown field alias

    When adding a new index term in solr, an error is reported as shown in the title, and the field specified to be inserted is not in the solr index field

    You can modify the schema.xml in the /solr/conf directory of the solr installation directory 

    Just add the required fields in this xml file, the format is as follows 

  

 <field name="alias" type="text_general" indexed="true" stored="true" />

    Note: name, type, indexed, stored can be filled in according to the actual situation! type must fill in the type defined by fieldtype in schema.xml

2. java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in classp

    If you encounter an error that the "solrconfig.xml" file cannot be found, set the solr.solr.home environment variable: in the D:\apache-tomcat-6.0.35\bin\catalina.bat file (non-windons, modify catalina.sh file) add set JAVA_OPTS=%JAVA_OPTS% -Dsolr.solr.home=D:\apache-tomcat-6.0.35\solr to the first line

3.rg.apache.solr.common.SolrException: Error loading class 'solr.VelocityResponseWriter

    

  

 <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" enable="${solr.velocity.enabled:true}"/>

    <!-- Change true in enable="${solr.velocity.enabled:true} to false -->

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324927850&siteId=291194637