ES Java api


searchRequestBuilder.addSort("publish_time", SortOrder.DESC);

按照某个字段排序的话,hit.getScore()将会失效


参考

https://www.elastic.co/guide/en/elasticsearch/client/java-api/2.4/java-docs-bulk-processor.html

相关文章
相关标签/搜索