Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lucene SPI support for plugins. #13051

Merged
merged 1 commit into from Aug 22, 2015
Merged

Lucene SPI support for plugins. #13051

merged 1 commit into from Aug 22, 2015

Conversation

rmuir
Copy link
Contributor

@rmuir rmuir commented Aug 22, 2015

When we create a plugin's classloader, we should allow it to register things in
the lucene SPI (registry of Tokenizers, TokenFilters, CharFilters, Codec,
PostingsFormat, DocValuesFormat).

Plugins should be able to do this so they can extend Lucene.

When we create a plugin's classloader, we should allow it to register things in
the lucene SPI (registry of Tokenizers, TokenFilters, CharFilters, Codec,
PostingsFormat, DocValuesFormat).

Plugins should be able to do this so they can extend Lucene.
@rmuir rmuir added :Core/Infra/Plugins Plugin API and infrastructure v2.0.0 labels Aug 22, 2015
@rmuir
Copy link
Contributor Author

rmuir commented Aug 22, 2015

This PR works, but it would be nice to test: maybe it should be a followup.

We should probably add an API somewhere (it can be internal or whatever) to dump out the contents of these registries for debugging anyway...

If we did this, we could add integration tests to our current analysis plugins that they are registered correctly, and that would do the trick.

@rjernst
Copy link
Member

rjernst commented Aug 22, 2015

LGTM

@uschindler
Copy link
Contributor

+1. We should at some point add an API to Lucene that does this in one call (Lucene should know on its own which SPIs are there)

rmuir added a commit that referenced this pull request Aug 22, 2015
Lucene SPI support for plugins.
@rmuir rmuir merged commit 91e722d into elastic:master Aug 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants