一個分布式的RESTFUL風(fēng)格的搜索和數(shù)據(jù)分析引擎
Elasticsearch is a highly scalable open-source full-text search and analytics engine. It allows you to store, search, and analyze big volumes of data quickly and in near real time. It is generally used as the underlying engine/technology that powers applications that have complex search features and requirements.
一個高度可擴(kuò)展的開源全文搜索和分析引擎。它允許你近乎實時的快速存儲、搜索和分析大量數(shù)據(jù)。它通常用作底層引擎/技術(shù)來為有著復(fù)雜搜索特性和需求的應(yīng)用程序供能。
Here are a few sample use-cases that Elasticsearch could be used for:
這里列舉了幾個應(yīng)用到Elasticsearch的簡單用例:
You run an online web store where you allow your customers to search for products that you sell. In this case, you can use Elasticsearch to store your entire product catalog and inventory and provide search and autocomplete suggestions for them.
你運(yùn)營一個允許用戶搜索在售商品的在線商城。在該用例中,你可以使用Elasticsearch來存儲你全部的商品品類和庫存,并為你的客戶提供搜索和自動補(bǔ)全搜索信息的推薦功能。
You want to collect log or transaction data and you want to analyze and mine this data to look for trends, statistics, summarizations, or anomalies. In this case, you can use Logstash (part of the Elasticsearch/Logstash/Kibana stack) to collect, aggregate, and parse your data, and then have Logstash feed this data into Elasticsearch. Once the data is in Elasticsearch, you can run searches and aggregations to mine any information that is of interest to you.?
你想收集日志或業(yè)務(wù)數(shù)據(jù),并且對其進(jìn)行分析、挖掘數(shù)據(jù)中存在的市場趨勢、統(tǒng)計信息、摘要信息或反常情況。在該用例中,你可以用Logstash (Elasticsearch/Logstash/Kibana庫中的一部分)來收集、合計、分析這些數(shù)據(jù),然后通過Logstash將這些數(shù)據(jù)注入Elasticsearch.一旦數(shù)據(jù)存于Elasticsearch,你就可以進(jìn)行搜索和聚合來挖掘你感興趣的信息。
You run a price alerting platform which allows price-savvy customers to specify a rule like "I am interested in buying a specific electronic gadget and I want to be notified if the price of gadget falls below $X from any vendor within the next month". In this case you can scrape vendor prices, push them into Elasticsearch and use its reverse-search (Percolator) capability to match price movements against customer queries and eventually push the alerts out to the customer once matches are found.
你運(yùn)營一個價格提醒平臺。它允許一些精打細(xì)算的顧客指定規(guī)則,如:“我有意購買一個特定的電子產(chǎn)品,我希望本月若有任一賣家將價格降至X元以下時,收到平臺的通知。”在這個案例中,你將抓取所有賣家給出的價格,將它們存入Elasticsearch中,使用Elasticsearch的反向檢索(過濾器)性能來匹配價格變動以應(yīng)對用戶的查詢,一旦發(fā)現(xiàn)匹配結(jié)果時就給用戶彈出提醒。
You have analytics/business-intelligence needs and want to quickly investigate, analyze, visualize, and ask ad-hoc questions on a lot of data (think millions or billions of records). In this case, you can use Elasticsearch to store your data and then use Kibana (part of the Elasticsearch/Logstash/Kibana stack) to build custom dashboards that can visualize aspects of your data that are important to you. Additionally, you can use the Elasticsearch aggregations functionality to perform complex business intelligence queries against your data.
你有一個分析學(xué)或商業(yè)情報類的需求,希望快速調(diào)研、分析、圖像化展示,并基于大量數(shù)據(jù)尋求特設(shè)問題(試想成百上千萬的數(shù)據(jù)記錄)。在這個用例中,你可以用Elasticsearch來存儲數(shù)據(jù),用Kibana(Elasticsearch/Logstash/Kibana庫中的一部分)來建立自定義儀表板以便直觀展現(xiàn)對你很重要的那部分?jǐn)?shù)據(jù)。除此之外,你可以用Elasticsearch 的集成功能依據(jù)你的數(shù)據(jù)來呈現(xiàn)復(fù)雜的商業(yè)情報查詢功能。
For the rest of this tutorial, you will be guided through the process of getting Elasticsearch up and running, taking a peek inside it, and performing basic operations like indexing, searching, and modifying your data. At the end of this tutorial, you should have a good idea of what Elasticsearch is, how it works, and hopefully be inspired to see how you can use it to either build sophisticated search applications or to mine intelligence from your data.
本教程的剩余內(nèi)容,將指引你分步安裝Elasticsearch并運(yùn)行,小覷其中構(gòu)造,完成像索引、搜索、修改數(shù)據(jù)等基本操作。本教程的結(jié)尾處,你將對Elasticsearch是什么有更好的認(rèn)知、了解它是怎樣工作的。我們無比希望你能使用它建造更精確的搜索應(yīng)用亦或挖掘出你數(shù)據(jù)中的價值。