(一) Getting Started

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

Elasticsearch是一個高度可擴展的開源全文搜索和分析引擎。它容許您快速,近實時地存儲,搜索和分析大量數據。它一般用做底層引擎/技術,爲具備複雜搜索功能和要求的應用程序提供支持。
 
Here are a few sample use-cases that Elasticsearch could be used for:
如下是Elasticsearch可用於的一些示例用例:
 
    (1)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.
    您運行在線網上商店,容許您的客戶搜索您銷售的產品。在這種狀況下,您可使用Elasticsearch存儲整個產品目錄和庫存,併爲它們提供搜索和自動填充建議。
 
   (2)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.
 您但願收集日誌或交易數據,而且但願分析和挖掘此數據以查找趨勢,統計信息,摘要或異常。在這種狀況下,您可使用Logstash(Elasticsearch / Logstash / Kibana堆棧的一部分)來收集,聚合和解析數據,而後讓Logstash將此數據提供給Elasticsearch。一旦數據在Elasticsearch中,您就能夠運行搜索和聚合來挖掘您感興趣的任何信息。
 
  (3)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.
您運行價格警報平臺,容許精通價格的客戶指定一條規則,例如「我有興趣購買特定的電子產品,若是小工具的價格在下個月內從任何供應商降至X美圓如下,我但願收到通知」 。在這種狀況下,您能夠刮取供應商價格,將其推入Elasticsearch並使用其反向搜索(Percolator)功能來匹配價格變更與客戶查詢,並最終在發現匹配後將警報推送給客戶。
 
  (4)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.
您有分析/業務智能需求,並但願快速調查,分析,可視化並詢問有關大量數據的特定問題(想一想數百萬或數十億條記錄)。在這種狀況下,您可使用Elasticsearch存儲數據,而後使用Kibana(Elasticsearch / Logstash / Kibana堆棧的一部分)構建自定義儀表板,以即可視化對您來講重要的數據方面。此外,您可使用Elasticsearch聚合功能針對您的數據執行復雜的商業智能查詢。
 
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.
在本教程的其他部分中,將引導您完成啓動和運行Elasticsearch,查看其中的內容以及執行索引,搜索和修改數據等基本操做的過程。在本教程結束時,您應該很好地瞭解Elasticsearch是什麼,它是如何工做的,並但願可以得到靈感,看看如何使用它來構建複雜的搜索應用程序或從數據中挖掘智能。
相關文章
相關標籤/搜索