第2章 文档索引及管理

“Elasticsearch is API driven.Almost any action can be performed using a simple RESTful API using JSON over HTTP.An API already exists in the language of your choice.Storing complex real world entities in Elasticsearch as structured JSON documents,all fields are indexed by default,and all the indices can be used in a single query,to return results at breath taking speed.”——http://www.elasticsearch.org/overview/ elasticsearch.

在Elasticsearch中对文档的索引等进行操作时,既可以通过RESTful接口进行操作,也可以通过Java客户端进行操作。本章介绍基于RESTful的文档索引与管理方法,面向Java客户端的编程方法参见第5章。