Remove the `SearchType` setter on `SearchContext`. #17955

It was not used.
This commit is contained in:
Adrien Grand 2016-04-25 15:51:26 +02:00
parent f6656aa6ff
commit 31a9845bc2
5 changed files with 0 additions and 23 deletions

View File

@ -309,12 +309,6 @@ public class DefaultSearchContext extends SearchContext {
return this.searchType;
}
@Override
public SearchContext searchType(SearchType searchType) {
this.searchType = searchType;
return this;
}
@Override
public SearchShardTarget shardTarget() {
return this.shardTarget;

View File

@ -105,11 +105,6 @@ public abstract class FilteredSearchContext extends SearchContext {
return in.searchType();
}
@Override
public SearchContext searchType(SearchType searchType) {
return in.searchType(searchType);
}
@Override
public SearchShardTarget shardTarget() {
return in.shardTarget();

View File

@ -129,8 +129,6 @@ public abstract class SearchContext implements Releasable {
public abstract SearchType searchType();
public abstract SearchContext searchType(SearchType searchType);
public abstract SearchShardTarget shardTarget();
public abstract int numberOfShards();

View File

@ -87,11 +87,6 @@ public class SubSearchContext extends FilteredSearchContext {
throw new UnsupportedOperationException("this context should be read only");
}
@Override
public SearchContext searchType(SearchType searchType) {
throw new UnsupportedOperationException("this context should be read only");
}
@Override
public SearchContext queryBoost(float queryBoost) {
throw new UnsupportedOperationException("Not supported");

View File

@ -157,11 +157,6 @@ public class TestSearchContext extends SearchContext {
return null;
}
@Override
public SearchContext searchType(SearchType searchType) {
return null;
}
@Override
public SearchShardTarget shardTarget() {
return null;