Skip to content

Commit 23de49f

Browse files
committed
Make search business rules plugin extensible
1 parent c93d620 commit 23de49f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

x-pack/plugin/ent-search/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ base {
1717

1818
dependencies {
1919
compileOnly project(path: xpackModule('core'))
20-
implementation project(xpackModule('search-business-rules'))
20+
compileOnly project(xpackModule('search-business-rules'))
2121
api project(':modules:lang-mustache')
2222

2323
// JSON Schema dependencies

x-pack/plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/EnterpriseSearch.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.elasticsearch.logging.LogManager;
2525
import org.elasticsearch.logging.Logger;
2626
import org.elasticsearch.plugins.ActionPlugin;
27-
import org.elasticsearch.plugins.Plugin;
2827
import org.elasticsearch.plugins.SearchPlugin;
2928
import org.elasticsearch.plugins.SystemIndexPlugin;
3029
import org.elasticsearch.rest.RestController;
@@ -201,6 +200,7 @@
201200
import org.elasticsearch.xpack.core.XPackSettings;
202201
import org.elasticsearch.xpack.core.action.XPackInfoFeatureAction;
203202
import org.elasticsearch.xpack.core.action.XPackUsageFeatureAction;
203+
import org.elasticsearch.xpack.searchbusinessrules.SearchBusinessRules;
204204

205205
import java.util.ArrayList;
206206
import java.util.Arrays;
@@ -212,7 +212,7 @@
212212

213213
import static java.util.Collections.singletonList;
214214

215-
public class EnterpriseSearch extends Plugin implements ActionPlugin, SystemIndexPlugin, SearchPlugin {
215+
public class EnterpriseSearch extends SearchBusinessRules implements ActionPlugin, SystemIndexPlugin, SearchPlugin {
216216

217217
public static final String APPLICATION_API_ENDPOINT = "_application";
218218

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import org.elasticsearch.TransportVersion;
1111
import org.elasticsearch.TransportVersions;
12+
import org.elasticsearch.plugins.ExtensiblePlugin;
1213
import org.elasticsearch.plugins.Plugin;
1314
import org.elasticsearch.plugins.SearchPlugin;
1415
import org.elasticsearch.plugins.SearchPlugin.QuerySpec;
@@ -21,7 +22,7 @@
2122
import static java.util.Collections.emptyList;
2223
import static java.util.Collections.singletonList;
2324

24-
public class SearchBusinessRules extends Plugin implements SearchPlugin {
25+
public class SearchBusinessRules extends Plugin implements SearchPlugin, ExtensiblePlugin {
2526

2627
@Override
2728
public List<QuerySpec<?>> getQueries() {

0 commit comments

Comments
 (0)