diff --git a/server/src/main/java/org/opensearch/plugins/AnalysisPlugin.java b/server/src/main/java/org/opensearch/plugins/AnalysisPlugin.java index 829af87bc4e..8022129df36 100644 --- a/server/src/main/java/org/opensearch/plugins/AnalysisPlugin.java +++ b/server/src/main/java/org/opensearch/plugins/AnalysisPlugin.java @@ -60,14 +60,14 @@ import static java.util.Collections.emptyMap; * An additional extension point for {@link Plugin}s that extends OpenSearch's analysis functionality. To add an additional * {@link TokenFilter} just implement the interface and implement the {@link #getTokenFilters()} method: * - *
{@code + ** * OpenSearch doesn't have any automatic mechanism to share these components between indexes. If any component is heavy enough to warrant * such sharing then it is the Plugin's responsibility to do it in their {@link AnalysisProvider} implementation. We recommend against doing diff --git a/server/src/main/java/org/opensearch/plugins/DiscoveryPlugin.java b/server/src/main/java/org/opensearch/plugins/DiscoveryPlugin.java index f2e35b3cff7..1a71d8b82aa 100644 --- a/server/src/main/java/org/opensearch/plugins/DiscoveryPlugin.java +++ b/server/src/main/java/org/opensearch/plugins/DiscoveryPlugin.java @@ -49,14 +49,14 @@ import java.util.function.Supplier; * An additional extension point for {@link Plugin}s that extends OpenSearch's discovery functionality. To add an additional * {@link NetworkService.CustomNameResolver} just implement the interface and implement the {@link #getCustomNameResolver(Settings)} method: * - ** public class AnalysisPhoneticPlugin extends Plugin implements AnalysisPlugin { * @Override - * public Map+ *> getTokenFilters() { + * public Map<String, AnalysisProvider<TokenFilterFactory>> getTokenFilters() { * return singletonMap("phonetic", PhoneticTokenFilterFactory::new); * } * } - * }
{@code + **/ public interface DiscoveryPlugin {* public class MyDiscoveryPlugin extends Plugin implements DiscoveryPlugin { * @Override * public NetworkService.CustomNameResolver getCustomNameResolver(Settings settings) { * return new YourCustomNameResolverInstance(settings); * } * } - * }+ *