<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Elastomer-ClientElasticsearch 的交互庫

          聯(lián)合創(chuàng)作 · 2023-09-28 14:30

          Elastomer-Client 為 ElasticSearch API endpoint 提供一個(gè)一對(duì)一的映射。API 通過你想要實(shí)現(xiàn)的來分解為邏輯部分和訪問,每一個(gè)邏輯部分代表一個(gè)客戶端類。

          示例代碼:

          require 'elastomer/client'
          client = Elastomer::Client.new
          
          index = client.index('twitter')
          index.create(
           :settings => { 'index.number_of_shards' => 3 },
           :mappings => {
           :tweet => {
           :_source => { :enabled => true },
           :_all    => { :enabled => false },
           :properties => {
           :author => { 
           :type => 'string',
           :index => 'not_analyzed' },
           :tweet  => { :type => 'string', :analyze => 'standard' }
                }
              }
            }
          )
          
          index.exists?
          
          index.exists? :type => 'tweet'index.delete
          瀏覽 14
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  欧美日韩日日夜夜 | av亚洲产国偷v产偷v自拍牛牛 | 成人久久影院 | 一级黄色三级黄色视频 | 日韩精品在线播放 |