Skip to content

Commit

Permalink
feat: move to stable plugin arch
Browse files Browse the repository at this point in the history
  • Loading branch information
nsantacruz committed Jul 17, 2023
1 parent d1685c5 commit 97a6879
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 50 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.sefaria.sefariaplugin;

import org.apache.lucene.analysis.Analyzer;
import org.elasticsearch.plugin.analysis.AnalyzerFactory;
import org.elasticsearch.plugin.NamedComponent;
import org.elasticsearch.plugin.Inject;

import org.sefaria.sefariaplugin.analysis.SefariaAnalyzer;


@NamedComponent( "sefaria-naive-lemmatizer")
public class SefariaAnalyzerFactory implements AnalyzerFactory {

@Inject
public SefariaAnalyzerFactory() {
}

@Override
public Analyzer create() {
return new SefariaAnalyzer();
}
}

This file was deleted.

This file was deleted.

0 comments on commit 97a6879

Please sign in to comment.