Skip to content

Commit 9bfcb4b

Browse files
committed
Removing this to see if it works without this transport version check, as i had made changes related to the cluster error
1 parent cbb8ab1 commit 9bfcb4b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

x-pack/plugin/search-business-rules/src/main/java/org/elasticsearch/xpack/searchbusinessrules/SearchBusinessRules.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
package org.elasticsearch.xpack.searchbusinessrules;
99

10-
import org.elasticsearch.TransportVersion;
11-
import org.elasticsearch.TransportVersions;
1210
import org.elasticsearch.plugins.ExtensiblePlugin;
1311
import org.elasticsearch.plugins.Plugin;
1412
import org.elasticsearch.plugins.SearchPlugin;
@@ -19,7 +17,6 @@
1917

2018
import java.util.List;
2119

22-
import static java.util.Collections.emptyList;
2320
import static java.util.Collections.singletonList;
2421

2522
public class SearchBusinessRules extends Plugin implements SearchPlugin, ExtensiblePlugin {
@@ -31,10 +28,7 @@ public List<QuerySpec<?>> getQueries() {
3128

3229
@Override
3330
public List<RetrieverSpec<?>> getRetrievers() {
34-
if (TransportVersion.current().onOrAfter(TransportVersions.PINNED_RETRIEVER)) {
35-
return singletonList(new RetrieverSpec<>(new ParseField(PinnedRetrieverBuilder.NAME), PinnedRetrieverBuilder::fromXContent));
36-
}
37-
return emptyList();
31+
return singletonList(new RetrieverSpec<>(new ParseField(PinnedRetrieverBuilder.NAME), PinnedRetrieverBuilder::fromXContent));
3832
}
3933

4034
}

0 commit comments

Comments
 (0)