ITeye博客

elastic

共 2 篇文章

elastic search java api入门

参考资料: https://www.elastic.co/guide/en/elasticsearch/client/java-api/2.4/index.html 注:es版本为2.4.0 1.下载安装: 下载地址: https://www.elastic.co/downloads/elasticsearch 下载之后解压,运行 bin/elasticsearch 即可 2.maven依赖: <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>2.…

2016-12-08 09:52 · elastic · Java · Search · API · elastic

elastic search index和type

简而言之,如果两个document之间的mapping比较类似,则使用type(同一个index下两个type),否则使用两个index可能是更好的选择。 https://www.elastic.co/blog/index-vs-type 注意红色字体的部分: Who has never wondered whether new data should be put into a new type of an existing index, or into a new index? This is a recurring question for new users, that can’t …

2016-12-02 12:55 · elastic · Search · index · elastic · type