摘要: Now let’s start with some simple searches. There are two basic ways to run searches: one is by sending search parameters through the REST request URIa 阅读全文
posted @ 2019-01-15 18:08 帅LOVE俊 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Sample Dataset Now that we’ve gotten a glimpse of the basics, let’s try to work on a more realistic dataset. I’ve prepared a sample of fictitious JSON 阅读全文
posted @ 2019-01-15 17:42 帅LOVE俊 阅读(137) 评论(0) 推荐(0) 编辑
摘要: In addition to being able to index, update, and delete individual documents, Elasticsearch also provides the ability to perform any of the above opera 阅读全文
posted @ 2019-01-15 16:54 帅LOVE俊 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Deleting a document is fairly straightforward. This example shows how to delete our previous customer with the ID of 2: 删除文档非常简单。此示例显示如何删除ID为2的以前的客户: 阅读全文
posted @ 2019-01-15 16:48 帅LOVE俊 阅读(192) 评论(0) 推荐(0) 编辑
摘要: In addition to being able to index and replace documents, we can also update documents. Note though that Elasticsearch does not actually do in-place u 阅读全文
posted @ 2019-01-15 15:37 帅LOVE俊 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Elasticsearch provides data manipulation and search capabilities in near real time. By default, you can expect a one second delay (refresh interval) f 阅读全文
posted @ 2019-01-15 15:15 帅LOVE俊 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Now let’s delete the index that we just created and then list all the indexes again: 现在让我们删除刚刚创建的索引,然后再次列出所有索引: curl -X DELETE "localhost:9200/custome 阅读全文
posted @ 2019-01-15 15:05 帅LOVE俊 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Let’s now put something into our customer index. We’ll index a simple customer document into the customer index, with an ID of 1 as follows: 现在让我们在客户索 阅读全文
posted @ 2019-01-15 14:55 帅LOVE俊 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Now let’s create an index named "customer" and then list all the indexes again: 现在让我们创建一个名为“customer”的索引,然后再次列出所有索引: The first command creates the ind 阅读全文
posted @ 2019-01-15 14:46 帅LOVE俊 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Now let’s take a peek at our indices: 现在让我们来看看我们的指数: And the response: Which simply means we have no indices yet in the cluster. 这仅仅意味着我们在集群中还没有索引。 Wh 阅读全文
posted @ 2019-01-15 14:37 帅LOVE俊 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Let’s start with a basic health check, which we can use to see how our cluster is doing. We’ll be using curl to do this but you can use any tool that 阅读全文
posted @ 2019-01-15 14:16 帅LOVE俊 阅读(168) 评论(0) 推荐(0) 编辑
摘要: The REST API The REST API Now that we have our node (and cluster) up and running, the next step is to understand how to communicate with it. Fortunate 阅读全文
posted @ 2019-01-15 14:03 帅LOVE俊 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Elasticsearch requires at least Java 8. Specifically as of this writing, it is recommended that you use the Oracle JDK version 1.8.0_131. Java install 阅读全文
posted @ 2019-01-15 12:07 帅LOVE俊 阅读(425) 评论(0) 推荐(0) 编辑