アプリケーションで ajax を使用して POST 検索に切り替えたので、日付範囲の使用を開始できます。ただし、何を投稿しても、インデックスに最初の 10 件の結果が返され続けるようです。実際の結果は 30k の範囲にあります。
amplify.request.define("searchPostRequest", "ajax", {
url: "http://leServer:9200/people/person/_search",
type: "POST",
dataType: 'jsonp',
contentType: 'application/json'
});
self.advancedSearchPostQuery = {
query: {
term: {
locationNumber:479
}
}
};
console.log(self.advancedSearchPostQuery);
amplify.request({
resourceId: "searchPostRequest",
data: JSON.stringify(self.advancedSearchPostQuery),
success: function (data) {
console.log(data.hits.hits.length);
}
});