org.crosswire.jsword.index.lucene.analysis

## Class LuceneAnalyzer

- java.lang.Object
- - org.apache.lucene.analysis.Analyzer
  - - org.crosswire.jsword.index.lucene.analysis.LuceneAnalyzer

- All Implemented Interfaces:
    Closeable, AutoCloseable

      public class LuceneAnalyzer
      extends org.apache.lucene.analysis.Analyzer

  A specialized analyzer for Books that analyzes different fields differently. This is book specific since it is possible that each book has specialized search requirements. Uses AnalyzerFactory for InstalledIndexVersion > 1.1
  Author:
    DM Smith
  See Also:
    `The GNU Lesser General Public License for details.`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private org.apache.lucene.analysis.PerFieldAnalyzerWrapper` | `analyzer`
    `private static org.slf4j.Logger` | `log`

    - ### Fields inherited from class org.apache.lucene.analysis.Analyzer

      `overridesTokenStreamMethod`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LuceneAnalyzer(Book book)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.lucene.analysis.TokenStream` | `tokenStream(String fieldName, Reader reader)`

    - ### Methods inherited from class org.apache.lucene.analysis.Analyzer

      `close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### analyzer

          private org.apache.lucene.analysis.PerFieldAnalyzerWrapper analyzer

    - #### log

          private static final org.slf4j.Logger log

  - ### Constructor Detail

    - #### LuceneAnalyzer

          public LuceneAnalyzer(Book book)

  - ### Method Detail

    - #### tokenStream

          public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
                                                           Reader reader)

      Specified by:
        `tokenStream` in class `org.apache.lucene.analysis.Analyzer`