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, […]

ElasticSearch复杂查询DSL使用

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