<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                映射相當于MySQL中的表。 <br/> **1. 創建映射** ```json #PUT /index/_mapping PUT /db_02/_mapping { "properties": { "name": { "type": "text", "index": true }, "sex": { "type": "text", "index": false }, "age": { "type": "long", "index": false } } } ``` ``` type:數據類型 String類型: text:可分詞 keyword:不可分詞,數據作為完整的字段進行匹配 Numerical:數值類型 基本數據類型:long、integer、short、byte、double、float、half_float 高精度類型:scaled_float Date:日期類型 Array:數組類型 Object:對象 index:索引 true(默認):字段會被索引,可以用來進行搜索 false:字段不會被索引,不能用來搜索 store:是否將數據獨立存儲,默認false為不獨立存儲 原始的文本會存儲在_source 里面,默認情況下其他提取出來的字段都不是獨立存儲 的,是從_source 里面提取出來的。當然你也可以獨立的存儲某個字段,只要設置 "store": true 即可,獲取獨立存儲的字段要比從_source 中解析快得多,但是也會占用 更多的空間,所以要根據實際業務需求來設置。 analyzer:分詞器 ``` **2. 查看映射** ```json #GET /index/_mapping GET /db_02/_mapping ``` 成功后返回如下結果: ```json { "db_02" : { "mappings" : { "properties" : { "age" : { "type" : "long", "index" : false }, "name" : { "type" : "text" }, "sex" : { "type" : "text", "index" : false } } } } } ``` **3. 索引映射關聯** ```json #index已經存在則報錯 #PUT /index PUT /db_03 { "settings": {}, "mappings": { "properties": { "name": { "type": "text", "index": true }, "sex": { "type": "text", "index": false }, "age": { "type": "long", "index": false } } } } ```
                  <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>

                              哎呀哎呀视频在线观看