參考資料
基礎概念
安裝
-
(安裝Java)ElasticSearch(ES) 是基於 Lucene 的封裝。所以想要運行ES 需要安裝Java的JDK。這裏推薦安裝Java8,171的版本,安裝完成後可在cmd下查看 java 和 javac 的版本信息,java -version javac -version ,能正常返回版本信息即是安裝成功。Tips:這裏需要提前配置好Java的環境變量。可參考 百度經驗-Windows 10 配置Java環境變量
-
(安裝ES)接下來去官網下載ES的安裝包即可,官網提供zip,msi 兩種安裝方式。zip 方式相對較簡潔。msi 操作簡單。
-
(安裝常用插件)ES常用的插件有ik分詞器,在官網下載好zip包,直接解壓縮到ES的安裝目錄下的plugins文件夾下即可,我的安裝路徑如下:E:\elasticsearch-6.2.4\plugins。安裝完成後需要重啓ES。
-
(安裝可視化工具)這裏推薦安裝Kibana,安裝和ES對應的版本即可。還有一種是ES的Head插件。
Asp.Net Core 實現
-
Elasticsearch.Net provides a low-level API for connecting with Elasticsearch and leaves to you the work of building/processing the requests and responses. It is a very thin client for consuming the HTTP API from .Net
-
NEST sits on top of Elasticsearch.Net and provides a higher-level API. It can map your objects to/from Request/Responses, make assumptions about index names, document types, field types and provide a strongly typed language for building your queries that matches the one of the HTTP REST API.
文章最新更新地址:語雀-Value