<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # Object 原文鏈接 : [https://www.elastic.co/guide/en/elasticsearch/reference/current/object.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/object.html) 譯文鏈接 : [Object](/display/Elasticsearch/Object) 貢獻者 : [彭秋源](/display/~pengqiuyuan),[ApacheCN](/display/~apachecn),[Apache中文網](/display/~apachechina) ## 對象數據類型 JSON文檔本質上是分層的:文檔包含內部對象,內部對象本身還包含內部對象。 ``` curl -XPUT 'localhost:9200/my_index/my_type/1?pretty' -d' { // 1 "region": "US", "manager": { // 2 "age": 30, "name": { // 3 "first": "John", "last": "Smith" } } }' ``` | 1 | 外層的文檔是 JSON 對象 | | 2 | 包含稱為 `manager` 的內部對象 | | 3 | `manager` 對象還包含一個內部對象稱為 `name` | 在內部,這個文檔被索引為一個簡單的、扁平的鍵值對列表,如下所示: ``` { "region": "US", "manager.age": 30, "manager.name.first": "John", "manager.name.last": "Smith" } ``` 上面文檔的顯式映射可以長這樣: ``` curl -XPUT 'localhost:9200/my_index?pretty' -d' { "mappings": { "my_type": { // 1 "properties": { "region": { "type": "keyword" }, "manager": { // 2 "properties": { "age": { "type": "integer" }, "name": { // 3 "properties": { "first": { "type": "text" }, "last": { "type": "text" } } } } } } } } }' ``` | 1 | 映射的類型是一個對象類型,具有一個 `properties` 字段 | | 2 | `manager`字段是一個內部`object`字段 | | 3 | `manager.name` 字段是`manager`字段中的一個內部`object`字段 | 不需要顯式地將字段類型設置為`object`類型,因為這是默認的類型。 ## `object?`字段的參數 | 參數 | 說明 | | 1 | 新屬性是否應動態添加到現有對象。接受 true(默認),false 和 strict | | 2 | 是否應該對對象字段給出的JSON值進行解析和索引(true,默認)或完全忽略(false) | | 3 | 為對象中的所有屬性設置默認的 `include_in_all` 值,對象本身沒有添加到 _all 字段。 | | 4 | 對象內的字段,可以是任何數據類型,包括對象。可以將新屬性添加到現有對象。 | 注意 如果你需要索引對象的數組而不是單個的對象,可以使用`nested`數據類型。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看