Skip to content

Commit d54e74e

Browse files
author
Andrew Stucki
committed
Add processor to plugin
1 parent 50c2d9a commit d54e74e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
* you may not use this file except in compliance with the Elastic License.
5+
*/
6+
7+
package org.elasticsearch.xpack.ingest;
8+
9+
import org.elasticsearch.ingest.Processor;
10+
import org.elasticsearch.plugins.Plugin;
11+
12+
import java.util.Map;
13+
14+
public class IngestPlugin extends Plugin implements org.elasticsearch.plugins.IngestPlugin {
15+
16+
@Override
17+
public Map<String, Processor.Factory> getProcessors(Processor.Parameters parameters) {
18+
return Map.of(
19+
UriPartsProcessor.TYPE,
20+
new UriPartsProcessor.Factory(),
21+
CommunityIdProcessor.TYPE,
22+
new CommunityIdProcessor.Factory(),
23+
RegisteredDomainProcessor.TYPE,
24+
new RegisteredDomainProcessor.Factory()
25+
);
26+
}
27+
}

0 commit comments

Comments
 (0)