elasticsearch下kibana常用的方法

2021-10-25 08:16:36 字數 646 閱讀 9176

1.查詢所有資料

get /albatross-video/videolongreleaseso/_search }}

2.刪除資料(1318434729537134574是id)

delete /albatross-video/videolongreleaseso/1318434729537134574

3.根據id獲取資料

get /albatross-video/videolongreleaseso/1318489199953668077

4.檢視字元分詞

post _analyze

post _analyze

5.根據條件查詢

get /albatross-video/videolongreleaseso/_search}}

6.查詢某個資料的某個屬性(collectionid)的分詞情況

get /albatross-video/videolongreleaseso/1318434729537134574/_termvectors?fields=sourcename

7.刪除索引庫

delete /albatross-video

8.刪除索引表

delete /albatross-video/videolongreleaseso

linux下elasticsearch的安裝

然後使用如下命令解壓elasticsearch檔案,進入資料夾,會看到如下幾個檔案 進入config資料夾,做如下配置 接著建立使用者組和使用者,並為使用者賦權,groupadd elasticsearch useradd elasticsearch 使用者名稱 g elasticsearch 組名...

Linux下elasticsearch環境搭建文件

此處忽略,請自行完成。wget unzip elasticsearch 6.5.4.tar.gz cd elasticsearch 6.5.4 vi config elasticsearch.yml network.host 0.0.0.01 情況 sudo sysctl w vm.max map ...

Linux 下 Elasticsearch 的安裝

安裝ik分詞器 version v7.4.0這一步不多說了,不懂安裝的可自行搜尋解壓安裝包 tar zxvf elasticsearch 7.4.0.tar.gz啟動 進入解壓目錄執行以下命令 不能使用root賬號啟動es服務 bin elasticsearch 或 bin elasticsearc...