Class JackrabbitAnalyzer

  extended by org.apache.lucene.analysis.Analyzer
      extended by org.apache.jackrabbit.core.query.lucene.JackrabbitAnalyzer

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 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 Summary
Method Summary
protected  void setDefaultAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
protected  void setIndexingConfig(IndexingConfiguration indexingConfig)
          A param indexingConfig the indexing configuration.
 org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, Reader reader)
          Creates a TokenStream which tokenizes all the text in the provided Reader.
Methods inherited from class org.apache.lucene.analysis.Analyzer
getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public JackrabbitAnalyzer()
Method Detail


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


protected void setDefaultAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
analyzer - the default jackrabbit analyzer


public 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

Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.