solr5.5 Tutorial-schema.xml Partial configuration

Source: Internet
Author: User

All contents of this article are translated from SOLR's own configuration file.

1. Field Node description

Name: Required, field names

Type: Required, the name of the type defined by the FieldType section

Indexed: If you want this field to be indexed set to true (searchable or sortable)

Stored: If you want this field to be restored, set to true. In layman's words, it should be set to true if you want to be able to query this field when searching.

Docvalues: If this field should have a document value (Doc values), set to True. Document values are useful in façade search, grouping, sorting, and function queries. Although not required, it can cause the build index to become larger and slower, but this setting makes the index load faster, more NRT friendly, and more efficient in memory usage. However, there are some restrictions on the use

Strfield, Uuidfield, and all trie*fields, and depending on the field type, may require that the field be a single value (single-valued), or have a default value.

Multivalued: Set to True if this field may contain multiple values in each document

Required: If this field is required, set to True

Default: When adding a document, if you do not set a value for this field, the defaults will be used

2, DynamicField

Dynamic fields allow SOLR indexes to have no explicitly defined fields in the schema. This is useful when you forget to define some fields. Dynamic fields can make the system more flexible and more versatile.

For example, to index a field called cost_i, but there is no cost_i field in the schema, so cost_i will be indexed to the *_i field.

Note: The pattern defined in name can only have one at the beginning or the end

3, UniqueKey

Unique identification of the document. UniqueKey The specified field must be Required=true

4, FieldType

Defining field types

solr5.5 Tutorial-schema.xml Partial configuration

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.