write down,forget
标签 Tag : es

elasticsearch里的search_type

<Category: Diving Into ElasticSearch> Comments Off on elasticsearch里的search_type

elasticsearch里面的search_type共有如下几种:
The type of the search operation to perform. Can be
dfs_query_then_fetch,
dfs_query_and_fetch,
query_then_fetch,
query_and_fetch. 【removed,since:http://groups.google.com/group/elasticsearch/browse_thread/thread/7aa5ea823afb499/d9e3cf3a1e1f6964】
Defaults to query_then_fetch.

form google group:“
You get proper sorted results when you use query_then_fetch (across all top
“size” results), if you use query_and_fetch, then each shard return the size
requested hits, and then they are sorted between them.

直接看代码里面吧,里面都有注释。

本文来自: elasticsearch里的search_type

ElasticSearch RESTful 接口调试记录&Tips

<Category: 搜索> Comments Off on ElasticSearch RESTful 接口调试记录&Tips

elasticsearch RESTful接口调试日志记录。未整理,纯流水记录。
阅读这篇文章的其余部分 »

本文来自: ElasticSearch RESTful 接口调试记录&Tips

ElasticSearch复杂查询DSL使用

<Category: 搜索> Comments Off on ElasticSearch复杂查询DSL使用

测试ES版本0.10.0,ES的Query DSL很灵活,可以实现复杂的查询,这里提供个简单的例子。

阅读这篇文章的其余部分 »

本文来自: ElasticSearch复杂查询DSL使用