条件没有设置 rangeQuery :
SearchRequestBuilder builder = client.prepareSearch("book")
.setTypes("novel")
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
.setQuery(boolQuery)
.setQuery(rangeQuery)
.setFrom(0)
.setSize(10);
SearchRequestBuilder builder = client.prepareSearch("book")
.setTypes("novel")
.setSearchType(SearchType.DFS_QUERY_THEN_FETCH)
.setQuery(boolQuery)
.setQuery(rangeQuery)
.setFrom(0)
.setSize(10);
2018-08-22
ElasticSearch入门课程,真心不错!我总结了学习笔记,地址:https://blog.csdn.net/u010648555/article/details/81841188
最新回答 / tinylight
修改配置文件elasticsearch.yml,在文件末尾添加http.cors.enabled: truehttp.cors.allow-origin: "*"
2018-08-17