Remove the `SearchType` setter on `SearchContext`. #17955
It was not used.
This commit is contained in:
parent
f6656aa6ff
commit
31a9845bc2
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue