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

Include a META-INF/services folder #7

Open
kutschkem opened this issue Mar 31, 2015 · 0 comments
Open

Include a META-INF/services folder #7

kutschkem opened this issue Mar 31, 2015 · 0 comments

Comments

@kutschkem
Copy link

Depends on #4
In Lucene 5.0.0, TokenFilterFactories can be discovered automatically if they are included in a file called
org.apache.lucene.analysis.util.TokenFilterFactory
in the directory META-INF/services
For reference, see how it is done in the lucene-analyzers-common jar. Then, CustomAnalyzer.Builder can be used to easily build analysis pipelines including this component.

http://lucene.apache.org/core/5_0_0/analyzers-common/org/apache/lucene/analysis/custom/CustomAnalyzer.Builder.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant