solr相关配置翻译

solr相关配置翻译

name: mandatory - the name for the field
name : 字段名称,必填

type: mandatory - the name of a field type from the fieldTypes
type: 字段类型集中fieldTypes的字段类型名称,必填

indexed: true if this field should be indexed (searchable or sortable)
indexed: 设置为true的话该字段将被索引(可以查询或排序)

stored: true if this field should be retrievable
stored: 设置为true表示该字段将被存储; false时查询时不返回该内容,但不影响索引

docValues: true if this field should have doc values. Doc values are
useful for faceting, grouping, sorting and function queries. Although
not required, doc values will make the index faster to load, more
NRT-friendly and more memory-efficient. They however come with some
limitations: they are currently only supported by StrField, UUIDField
and all Trie*Fields, and depending on the field type, they might
require the field to be single-valued, be required or have a default
value (check the documentation of the field type you’re interested in
for more information)
docValues: 设置为true该字段应该有docValues, docValues有益于faceting,grouping,sorting和函数查询,docValues将使索引加载更快,近实时查询(NRT?)更有好,更加节省内存.但是也有一些限制,当前仅StrField,UUIDField和所有的 Trie*(字典树)类型支持),而且依赖字段类型,可能要求字段为单值的(single-valued),必填或有默认值

multiValued: true if this field may contain multiple values per document
multiValued:设置为true如果该字段在单个文档中可以有多个值

omitNorms: (expert) set to true to omit the norms associated with
this field (this disables length normalization and index-time
boosting for the field, and saves some memory). Only full-text
fields or fields that need an index-time boost need norms.
Norms are omitted for primitive (non-analyzed) types by default.
omitNorms:(专业级)设置为true将忽略些字段上关联的规则(将禁用对于此字段的长度标准化及索引时间及内存的优化).只有纯文本或需要索引时间优化的字段需要规则。原始类型(不要分解)默认忽略规则。

termVectors: [false] set to true to store the term vector for a
given field.When using MoreLikeThis, fields used for similarity should be
stored for best performance.
termVectors:[默认false]设置为true将保存索引向量

termPositions: Store position information with the term vector.
This will increase storage costs.
termPositions:保存索引向量位置信息

termOffsets: Store offset information with the term vector.
This will increase storage costs.
termOffsets:保存索引向量偏移信息

required: The field is required. It will throw an error if the
value does not exist
required:该字段是必须的,如果没有将报错

default: a value that should be used if no value is specified
when adding a document.
default: 增加文档时,如果该字段未指定值,将使用该默认值

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值