Class JackrabbitAnalyzer

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class JackrabbitAnalyzer
    extends org.apache.lucene.analysis.Analyzer
    This is the global jackrabbit lucene analyzer. By default, all properties are indexed with the StandardAnalyzer(new String[]{}), unless in the <SearchIndex> configuration a global analyzer is defined. In the indexing configuration, properties can be configured to be indexed with a specific analyzer. If configured, this analyzer is used to index the text of the property and to parse searchtext for this property.
    • Constructor Detail

      • JackrabbitAnalyzer

        public JackrabbitAnalyzer()
    • Method Detail

      • setIndexingConfig

        protected void setIndexingConfig​(IndexingConfiguration indexingConfig)
        A param indexingConfig the indexing configuration.
      • setDefaultAnalyzer

        protected void setDefaultAnalyzer​(org.apache.lucene.analysis.Analyzer analyzer)
        Parameters:
        analyzer - the default jackrabbit analyzer
      • tokenStream

        public final org.apache.lucene.analysis.TokenStream tokenStream​(String fieldName,
                                                                        Reader reader)
        Creates a TokenStream which tokenizes all the text in the provided Reader. If the fieldName (property) is configured to have a different analyzer than the default, this analyzer is used for tokenization
        Specified by:
        tokenStream in class org.apache.lucene.analysis.Analyzer
      • reusableTokenStream

        public final org.apache.lucene.analysis.TokenStream reusableTokenStream​(String fieldName,
                                                                                Reader reader)
                                                                         throws IOException
        Overrides:
        reusableTokenStream in class org.apache.lucene.analysis.Analyzer
        Throws:
        IOException