Skip to content

Commit

Permalink
analysis-common: make UniqueTokenFilter public
Browse files Browse the repository at this point in the history
this way the filter can also be used from plugins which implement
analyzers and want to use it.
the current workaround is that the plugin has to implement the usage
from it in a package with the same name, which is just an ugly hack.

Signed-off-by: Ralph Ursprung <[email protected]>
  • Loading branch information
rursprung committed Jun 11, 2024
1 parent cc98dbe commit 4c77270
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* A token filter that generates unique tokens. Can remove unique tokens only on the same
* position increments as well.
*/
class UniqueTokenFilter extends TokenFilter {
public class UniqueTokenFilter extends TokenFilter {

private final CharTermAttribute termAttribute = addAttribute(CharTermAttribute.class);
private final PositionIncrementAttribute posIncAttribute = addAttribute(PositionIncrementAttribute.class);
Expand Down

0 comments on commit 4c77270

Please sign in to comment.