Skip to content

Commit 05a05a0

Browse files
committed
Trying to add clustering to the test
1 parent 1d4eb6f commit 05a05a0

File tree

5 files changed

+35
-3
lines changed

5 files changed

+35
-3
lines changed

x-pack/plugin/search-business-rules/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ dependencies {
1616
compileOnly project(path: xpackModule('core'))
1717
testImplementation(testArtifact(project(xpackModule('core'))))
1818
testImplementation(testArtifact(project(':server')))
19-
20-
clusterModules project(':modules:mapper-extras')
21-
clusterModules project(':modules:lang-painless')
2219
}
2320

2421
tasks.named("yamlRestTest") {

x-pack/plugin/search-business-rules/src/main/java/module-info.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616
requires org.elasticsearch.xcore;
1717

1818
exports org.elasticsearch.xpack.searchbusinessrules;
19+
provides org.elasticsearch.features.FeatureSpecification with org.elasticsearch.xpack.searchbusinessrules.SearchBusinessRulesFeatures;
20+
1921
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
package org.elasticsearch.xpack.searchbusinessrules;
99

10+
import org.elasticsearch.features.FeatureSpecification;
1011
import org.elasticsearch.plugins.Plugin;
1112
import org.elasticsearch.plugins.SearchPlugin;
1213
import org.elasticsearch.xcontent.ParseField;
@@ -27,4 +28,5 @@ public List<QuerySpec<?>> getQueries() {
2728
public List<RetrieverSpec<?>> getRetrievers() {
2829
return singletonList(new RetrieverSpec<>(new ParseField(PinnedRetrieverBuilder.NAME), PinnedRetrieverBuilder::fromXContent));
2930
}
31+
3032
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License
4+
* 2.0; you may not use this file except in compliance with the Elastic License
5+
* 2.0.
6+
*/
7+
8+
package org.elasticsearch.xpack.searchbusinessrules;
9+
10+
import org.elasticsearch.features.FeatureSpecification;
11+
import org.elasticsearch.features.NodeFeature;
12+
13+
import java.util.Set;
14+
15+
public class SearchBusinessRulesFeatures implements FeatureSpecification {
16+
17+
public static final NodeFeature PINNED_RETRIEVER_FEATURE = new NodeFeature(
18+
"pinned_retriever");
19+
20+
@Override
21+
public Set<NodeFeature> getFeatures() {
22+
return Set.of();
23+
}
24+
25+
@Override
26+
public Set<NodeFeature> getTestFeatures() {
27+
return Set.of(PINNED_RETRIEVER_FEATURE);
28+
}
29+
}
30+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.elasticsearch.xpack.searchbusinessrules.SearchBusinessRulesFeatures

0 commit comments

Comments
 (0)