Solr field configuration error. solr Field Configuration
When searching for Solr Schema Design in the site, there is an FTS_URL field (previously designed URLs will also be used for retrieval and scoring). Therefore, the configuration information is as follows:
<field name="FTS_URL" type="string" indexed="true" stored="true" omitNorms="false" />
Where:
Type indicates the type and Word Segmentation type.
Indexed indicates whether indexes are supported.
Stored indicates whether to save the data to the index. This attribute is critical. Some fields are not suitable for storage and may affect the performance. Set this field as the returned result to true, and vice versa.
OmitNorms indicates whether scoring is supported. If not, false.
Later, according to the analysis, the URL is not suitable for word splitting and is only suitable for storing and returning the result fields. Therefore, set indexed to false.
<field name="FTS_URL" type="string" indexed="false" stored="true" omitNorms="false" />
I did not care about it after setting it. Today, solr restarts and suddenly finds that a core of solr cannot be started. The error message is as follows:
OTHER_CORE: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Schema Parsing Failed: SchemaField: FTS_URL conflicting 'false' field options for non-indexed field:{indexed=false, stored=true, omitNorms=false}. Schema file is /usr/local/solrhome/solr/OTHER_CORE/schema.xml
According to the error message, the field Configuration conflicts, and the information prompt is incomplete. Which attribute does "conflicting 'false' field options for non-indexed" mean? Obviously, omitNorm is not suitable here. Just remove it, restart solr, run normally, and solve the OK problem!
An error occurred while configuring DataImport in Solr.
For more information, see solr. xml.
The core1 name pointed to during dataimport is incorrect.
[Solr configuration problem] I configured it according to the method described on the Internet. However, when TOMCAT is started, the SOLR welcome page cannot be accessed.
Copy the solr-4.x.x/example/lib/ext/*. jar to tomcat/lib and restart tomcat.