Solr field configuration error. solr Field Configuration

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.