sonyet 发表于 2017-12-18 21:37:30

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>  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: 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: 增加文档时,如果该字段未指定值,将使用该默认值
页: [1]
查看完整版本: solr相关配置翻译