clean code, script service no longer used in get action
This commit is contained in:
parent
835dc33d45
commit
c8641588ec
|
@ -35,7 +35,6 @@ import org.elasticsearch.index.get.GetResult;
|
||||||
import org.elasticsearch.index.service.IndexService;
|
import org.elasticsearch.index.service.IndexService;
|
||||||
import org.elasticsearch.index.shard.service.IndexShard;
|
import org.elasticsearch.index.shard.service.IndexShard;
|
||||||
import org.elasticsearch.indices.IndicesService;
|
import org.elasticsearch.indices.IndicesService;
|
||||||
import org.elasticsearch.script.ScriptService;
|
|
||||||
import org.elasticsearch.threadpool.ThreadPool;
|
import org.elasticsearch.threadpool.ThreadPool;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
|
|
||||||
|
@ -48,15 +47,12 @@ public class TransportGetAction extends TransportShardSingleOperationAction<GetR
|
||||||
|
|
||||||
private final IndicesService indicesService;
|
private final IndicesService indicesService;
|
||||||
|
|
||||||
private final ScriptService scriptService;
|
|
||||||
|
|
||||||
private final boolean realtime;
|
private final boolean realtime;
|
||||||
|
|
||||||
@Inject public TransportGetAction(Settings settings, ClusterService clusterService, TransportService transportService,
|
@Inject public TransportGetAction(Settings settings, ClusterService clusterService, TransportService transportService,
|
||||||
IndicesService indicesService, ScriptService scriptService, ThreadPool threadPool) {
|
IndicesService indicesService, ThreadPool threadPool) {
|
||||||
super(settings, threadPool, clusterService, transportService);
|
super(settings, threadPool, clusterService, transportService);
|
||||||
this.indicesService = indicesService;
|
this.indicesService = indicesService;
|
||||||
this.scriptService = scriptService;
|
|
||||||
|
|
||||||
this.realtime = settings.getAsBoolean("action.get.realtime", true);
|
this.realtime = settings.getAsBoolean("action.get.realtime", true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue