org.apache.jackrabbit.core.query.lucene
Class JackrabbitAnalyzer

java.lang.Object
  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
JackrabbitAnalyzer()
           
 
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
close, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setPreviousTokenStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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-2009 The Apache Software Foundation. All Rights Reserved.