0
在幾個領域進行排序
我使用Elasticsearch搜索和想了解這裏描述我如何添加對Java的幾個領域排序:在Elasticsearch
http://www.elasticsearch.org/guide/reference/api/search/sort.html
我只成功地添加單準備搜索時對排序生成器進行排序。
謝謝,
斯坦
這是我添加如何在單個字段排序:
client.prepareSearch(indexName).setTypes(typeName)
.setQuery(query)
.addSort(fieldSort("activity").order(DESC).missing("_last"))
.setSize(limit)
.execute().actionGet();
似乎我並不孤單,該問題:https://groups.google.com/forum/?fromgroups=#!topic/elasticsearch/IiQCfNIGi00 – Stine