Hello there,
Setup:
4 node cluster
1 index (tweets) (1.1 billion indexed, 5 shards)
using java api
java client:
Settings settings = ImmutableSettings.settingsBuilder()
.put("cluster.name", "tweets").build();
Client client = new TransportClient(settings)
.addTransportAddress(new InetSocketTransportAddress("#", #))
.addTransportAddress(new InetSocketTransportAddress("#", #))
.addTransportAddress(new InetSocketTransportAddress("#", #))
.addTransportAddress(new InetSocketTransportAddress("#",
#));
...
...
...
QueryBuilder qb = QueryBuilders.rangeQuery("tweet_date").gte(dt1).lte(dt2);
SearchRequestBuilder srb = client.prepareSearch("tweets");
srb.setTypes("tweet");
srb.setSearchType(SearchType.DFS_QUERY_THEN_FETCH);
SearchResponse sr =
srb.setQuery(qb).setSize(0).srb.execute().actionGet()
For some reason when I execute a "range date" query when results come back
only partial shards are "successful", eg:
"took" : 27119,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 1,
"failed" : 0
},
"hits" : {
"total" : 224795578,
"max_score" : 0.0,
"hits" : [ ]
},
sometimes it's:
"took" : 31076,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 3,
"failed" : 0
},
"hits" : {
"total" : 674358780,
"max_score" : 0.0,
"hits" : [ ]
},
is there a way to make sure all shards return all the information? Or am I
doing something wrong?
Thank you !
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/651cf463-fbd1-4fa7-ac74-b9ca1520fcb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.