gpt4 book ai didi

elasticsearch - Elasticsearch数据表示

转载 作者:行者123 更新时间:2023-12-03 01:06:42 25 4
gpt4 key购买 nike

我是Elasticsearch的新手,我想我将通过10 minutes walk through开始学习。
但是我在这里偶然发现了一些非常基本的疑问。我无法在此处找出数据表示形式。例如。本教程提到有关创建索引的信息

curl -XPUT http://localhost:9200/shakespeare -d '
{
"mappings" : {
"_default_" : {
"properties" : {
"speaker" : {"type": "string", "index" : "not_analyzed" },
"play_name" : {"type": "string", "index" : "not_analyzed" },
"line_id" : { "type" : "integer" },
"speech_number" : { "type" : "integer" }
}
}
}
}
';

我了解这是一个JSON字符串,但除此之外我还无法理解该表示形式?我没有得到默认值,不是not_analyzed等等。

在进行 flex 搜索之前,是否需要了解关于如何表示数据的任何标准?
我是Elasticsearch的新手,如果能获得一些信息/教程的指导,我将不胜感激,这将帮助我理解如何开始学习这项技术。

感谢和问候
苏尼尔

最佳答案

我认为10 minutes walk through的主要目的是给出有关Kibana的快速演示,而不是对Elasticsearch的完整理解(映射,索引等)。

但是,如果您想了解该示例中发生的情况,则可能需要了解如何阅读本文档。

范例:

默认映射:

Often, all types in an index share similar fields and settings. 
It can be more convenient to specify these common settings in
the _default_ mapping, instead of having to repeat yourself every
time you create a new type. The _default_ mapping acts as a
template for new types. All types created after the _default_
mapping will include all of these default settings, unless
explicitly overridden in the type mapping itself.

有关默认映射的更多详细信息,请引用 here

关于elasticsearch - Elasticsearch数据表示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27960008/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com