Custom Lucene Standard Analyzer to accept a set of words to filter while indexing

34 Views Asked by At

I am using the apache.Lucene:

<dependency>
     <groupId>org.apache.lucene</groupId>
     <artifactId>lucene-core</artifactId>
     <version>8.10.1</version>          
</dependency>
<dependency>
     <groupId>org.apache.lucene</groupId>
     <artifactId>lucene-queryparser</artifactId>
     <version>8.10.1</version>          
</dependency>

I want to make a customAnalyzer in Lucene where in its core will use the StandAnalyzer and also will have accept a set of words to filter out as well while indexing.

I can make a customanalyzer by extending the Analyzer but how do i integrate the StandardAnalyzer in it as well?

0

There are 0 best solutions below