Skip to content

Conversation

@pgomulka
Copy link
Contributor

@pgomulka pgomulka commented Oct 11, 2022

This commit adds an example stable-analysis plugin under plugins/examples to show a usage of the new stable analysis api.
It implements AnalyzerFactory, CharFilterFactory, TokenFilterFactory and TokenizerFactory.
it also presents how to write unit tests and yaml rest tests without the dependencies on elasticsearch test framework.

relates #88980

in elastic#90707 a org.elasticsearch.test.AbstractSerializingTestCase was refactored and
AbstractXContentSerializingTestCase should be used instead.
@pgomulka pgomulka added >enhancement :Core/Infra/Plugins Plugin API and infrastructure labels Oct 13, 2022
@pgomulka pgomulka self-assigned this Oct 13, 2022
@elasticsearchmachine
Copy link
Collaborator

Hi @pgomulka, I've created a changelog YAML for you.

@@ -0,0 +1,34 @@
//TODO guide - mention buildscript (in parent)
Copy link
Contributor

@williamrandolph williamrandolph Oct 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: "buildscript" is a code block in build.gradle. The plugin developer can begin their project by copying and pasting the code block.

@pgomulka
Copy link
Contributor Author

@elasticmachine ok to test

@williamrandolph
Copy link
Contributor

@elasticmachine test this please

@pgomulka pgomulka marked this pull request as ready for review October 14, 2022 19:48
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Oct 14, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@williamrandolph williamrandolph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great work. I've run a successful live demo with it, and will be creating a guide for it soon.

@williamrandolph williamrandolph merged commit 25fc5c2 into elastic:main Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Plugins Plugin API and infrastructure >enhancement Team:Core/Infra Meta label for core/infra team v8.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants