博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
solr相关配置翻译
阅读量:5205 次
发布时间:2019-06-14

本文共 2394 字,大约阅读时间需要 7 分钟。

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 TrieFields, 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: 增加文档时,如果该字段未指定值,将使用该默认值

转载于:https://www.cnblogs.com/vipmint/p/7109479.html

你可能感兴趣的文章
【pwnable.kr】 flag
查看>>
1014 装箱问题——http://codevs.cn/problem/1014/
查看>>
poj 3177 边双联通 **
查看>>
java.lang.UnsupportedOperationException
查看>>
java-斐波那契数列的解法
查看>>
rackup工具
查看>>
Linux operating system (Ubuntu) 学习-1
查看>>
ajax-原生写法步骤
查看>>
.Net语言 APP开发平台——Smobiler学习日志:如何在手机上实现饼图图表
查看>>
svn完整备份迁移
查看>>
Python字典实现分析
查看>>
jenkins+testNG
查看>>
Java自定义范型的应用技巧
查看>>
[洛谷1485] 火枪打怪
查看>>
白话经典算法系列之六 快速排序 快速搞定
查看>>
错了:用流量能够放肆,有wifi则要节制
查看>>
CSS渐变字体、镂空字体、input框提示信息颜色、给图片加上内阴影、3/4圆
查看>>
https://zhidao.baidu.com/question/362784520674844572.html
查看>>
第八周
查看>>
my.cnf_For5.7_注释版
查看>>