当前位置: 首页 > elasticsearch, 搜索 > 正文

翻译 elasticsearch type field

关键字:
1 星2 星3 星4 星5 星 (1 次投票, 评分: 5.00, 总分: 5)
Loading ... Loading ...
baidu_share

原文地址:http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-type-field.html

Each document indexed is associated with an id and a type. The type, when indexing, is automatically indexed into a _type field. By default, the _type field is indexed (but not analyzed) and not stored. This means that the _type field can be queried.

每个文档索引时有一个相关性的id和type。当索引时,type 会自动索引在_type field._type field是被索引的,但是没有被analyzed(分词),没有存储。这意味着_type field可以被查询。

The _type field can be stored as well, for example:
_type field也可以被存储。例如:

{
    "tweet" : {
        "_type" : {"store" : "yes"}
    }
}

The _type field can also not be indexed, and all the APIs will still work except for specific queries (term queries / filters) or faceting done on the _type field.

_type field也可以不被索引,除过特定的查询(term查询/过滤)或者切面(faceting)在_type field操作不能执行,别的APIs操作都可以。

{
    "tweet" : {
        "_type" : {"index" : "no"}
    }
}

本文固定链接: http://www.chepoo.com/translate-elasticsearch-type-field.html | IT技术精华网

翻译 elasticsearch type field:等您坐沙发呢!

发表评论