I use the same query to search something by scrolls for many times,each
time the search result are big different.i check the ES log find somethig
like this:
========================es log===================================
[2013-05-06 11:57:08,774][DEBUG][action.search.type ]
[node6] [1924] Failed to execute query phase
org.elasticsearch.transport.RemoteTransportException:
[node3][inet[/10.0.0.3:9300]][search/phase/scan/scroll]
Caused by: org.elasticsearch.search.SearchContextMissingException: No
search context found for id [1924]
at
org.elasticsearch.search.SearchService.findContext(SearchService.java:459)
at
org.elasticsearch.search.SearchService.executeScan(SearchService.java:208)
at
org.elasticsearch.search.action.SearchServiceTransportAction$SearchScanScrollTransportHandler.messageReceived(SearchServiceTransportAction.java:697)
at
org.elasticsearch.search.action.SearchServiceTransportAction$SearchScanScrollTransportHandler.messageReceived(SearchServiceTransportAction.java:686)
at
org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:268)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
javacode like this:
SearchResponse response =
client.prepareSearch(getIndexNames(query)).setTypes("post")
.setSearchType(SearchType.SCAN)
.setScroll(new TimeValue(1000))
.setQuery(qb)setSize(5000).execute().actionGet();
......
response = client.prepareSearchScroll(response.getScrollId())
.setScroll(new TimeValue(1000000))
.execute()
.actionGet();
......
--
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.
For more options, visit https://groups.google.com/groups/opt_out.