## Uses of Class
org.apache.lucene.analysis.Analyzer

Packages that use Analyzer
org.apache.lucene.analysis: API and code to convert text into indexable/searchable tokens.
org.apache.lucene.analysis.br: Analyzer for Brazilian.
org.apache.lucene.analysis.cjk: Analyzer for Chinese, Japanese and Korean.
org.apache.lucene.analysis.cn: Analyzer for Chinese.
org.apache.lucene.analysis.cz: Analyzer for Czech.
org.apache.lucene.analysis.de: Analyzer for German.
org.apache.lucene.analysis.el: Analyzer for Greek.
org.apache.lucene.analysis.fr: Analyzer for French.
org.apache.lucene.analysis.nl: Analyzer for Dutch.
org.apache.lucene.analysis.ru: Analyzer for Russian.
org.apache.lucene.analysis.snowball: `TokenFilter` and `Analyzer` implementations that use Snowball stemmers.
org.apache.lucene.analysis.standard: A fast grammar-based tokenizer constructed with JFlex.
org.apache.lucene.analysis.th
org.apache.lucene.benchmark.byTask: Benchmarking Lucene By Tasks.
org.apache.lucene.benchmark.standard
org.apache.lucene.benchmark.stats
org.apache.lucene.index: Code to maintain and access indices.
org.apache.lucene.index.memory: High-performance single-document main memory Apache Lucene fulltext search index.
org.apache.lucene.queryParser: A simple query parser implemented with JavaCC.
org.apache.lucene.queryParser.analyzing
org.apache.lucene.queryParser.precedence
org.apache.lucene.search: Code to search indices.
org.apache.lucene.search.highlight: The highlight package contains classes to provide "keyword in context" features typically used to highlight search terms in the text of results pages.
org.apache.lucene.search.similar: Document similarity query generators.
org.apache.lucene.swing.models: Decorators for JTable TableModel and JList ListModel encapsulating Lucene indexing and searching functionality.
org.apache.lucene.wordnet: This package uses synonyms defined by WordNet to build a Lucene index storing them, which in turn can be used for query expansion.
org.apache.lucene.xmlparser
org.apache.lucene.xmlparser.builders

Uses of Analyzer in org.apache.lucene.analysis

Subclasses of Analyzer in org.apache.lucene.analysis
`class` `KeywordAnalyzer` "Tokenizes" the entire stream as a single token.
`class` `PerFieldAnalyzerWrapper` This analyzer is used to facilitate scenarios where different fields require different analysis techniques.
`class` `SimpleAnalyzer` An Analyzer that filters LetterTokenizer with LowerCaseFilter.
`class` `StopAnalyzer` Filters LetterTokenizer with LowerCaseFilter and StopFilter.
`class` `WhitespaceAnalyzer` An Analyzer that uses WhitespaceTokenizer.

Methods in org.apache.lucene.analysis with parameters of type Analyzer
`void` `PerFieldAnalyzerWrapper.addAnalyzer(String fieldName, Analyzer analyzer)` Defines an analyzer to use for the specified field.

Constructors in org.apache.lucene.analysis with parameters of type Analyzer
`PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer)` Constructs with default analyzer.

Uses of Analyzer in org.apache.lucene.analysis.br

Subclasses of Analyzer in org.apache.lucene.analysis.br
`class` `BrazilianAnalyzer` Analyzer for Brazilian language.

Uses of Analyzer in org.apache.lucene.analysis.cjk

Subclasses of Analyzer in org.apache.lucene.analysis.cjk
`class` `CJKAnalyzer` Filters CJKTokenizer with StopFilter.

Uses of Analyzer in org.apache.lucene.analysis.cn

Subclasses of Analyzer in org.apache.lucene.analysis.cn
`class` `ChineseAnalyzer` Title: ChineseAnalyzer Description: Subclass of org.apache.lucene.analysis.Analyzer build from a ChineseTokenizer, filtered with ChineseFilter.

Uses of Analyzer in org.apache.lucene.analysis.cz

Subclasses of Analyzer in org.apache.lucene.analysis.cz
`class` `CzechAnalyzer` Analyzer for Czech language.

Uses of Analyzer in org.apache.lucene.analysis.de

Subclasses of Analyzer in org.apache.lucene.analysis.de
`class` `GermanAnalyzer` Analyzer for German language.

Uses of Analyzer in org.apache.lucene.analysis.el

Subclasses of Analyzer in org.apache.lucene.analysis.el
`class` `GreekAnalyzer` Analyzer for the Greek language.

Uses of Analyzer in org.apache.lucene.analysis.fr

Subclasses of Analyzer in org.apache.lucene.analysis.fr
`class` `FrenchAnalyzer` Analyzer for French language.

Uses of Analyzer in org.apache.lucene.analysis.nl

Subclasses of Analyzer in org.apache.lucene.analysis.nl
`class` `DutchAnalyzer` Analyzer for Dutch language.

Uses of Analyzer in org.apache.lucene.analysis.ru

Subclasses of Analyzer in org.apache.lucene.analysis.ru
`class` `RussianAnalyzer` Analyzer for Russian language.

Uses of Analyzer in org.apache.lucene.analysis.snowball

Subclasses of Analyzer in org.apache.lucene.analysis.snowball
`class` `SnowballAnalyzer` Filters `StandardTokenizer` with `StandardFilter`, `LowerCaseFilter`, `StopFilter` and `SnowballFilter`.

Uses of Analyzer in org.apache.lucene.analysis.standard

Subclasses of Analyzer in org.apache.lucene.analysis.standard
`class` `StandardAnalyzer` Filters `StandardTokenizer` with `StandardFilter`, `LowerCaseFilter` and `StopFilter`, using a list of English stop words.

Uses of Analyzer in org.apache.lucene.analysis.th

Subclasses of Analyzer in org.apache.lucene.analysis.th
`class` `ThaiAnalyzer` Analyzer for Thai language.

Uses of Analyzer in org.apache.lucene.benchmark.byTask

Methods in org.apache.lucene.benchmark.byTask that return Analyzer
`Analyzer` `PerfRunData.getAnalyzer()`

Methods in org.apache.lucene.benchmark.byTask with parameters of type Analyzer
`void` `PerfRunData.setAnalyzer(Analyzer analyzer)`

Uses of Analyzer in org.apache.lucene.benchmark.standard

Methods in org.apache.lucene.benchmark.standard with parameters of type Analyzer
`static Query[]` `StandardBenchmarker.createQueries(List qs, Analyzer a)` Deprecated. Parse the strings containing Lucene queries.

Uses of Analyzer in org.apache.lucene.benchmark.stats

Methods in org.apache.lucene.benchmark.stats that return Analyzer
`Analyzer` `TestData.getAnalyzer()`

Methods in org.apache.lucene.benchmark.stats with parameters of type Analyzer
`static TestData[]` `TestData.getAll(File[] sources, Analyzer[] analyzers)` Prepare a list of benchmark data, using all possible combinations of benchmark parameters.
`static TestData[]` `TestData.getTestDataMinMaxMergeAndMaxBuffered(File[] sources, Analyzer[] analyzers)` Similar to `TestData.getAll(java.io.File[], org.apache.lucene.analysis.Analyzer[])` but only uses maxBufferedDocs of 10 and 100 and same for mergeFactor, thus reducing the number of permutations significantly.
`void` `TestData.setAnalyzer(Analyzer analyzer)`

Uses of Analyzer in org.apache.lucene.index

Fields in org.apache.lucene.index declared as Analyzer
`protected Analyzer` `IndexModifier.analyzer` Deprecated.

Methods in org.apache.lucene.index that return Analyzer
`Analyzer` `IndexWriter.getAnalyzer()` Returns the analyzer used by this index.

Methods in org.apache.lucene.index with parameters of type Analyzer
`void` `IndexModifier.addDocument(Document doc, Analyzer docAnalyzer)` Deprecated. Adds a document to this index, using the provided analyzer instead of the one specific in the constructor.
`void` `IndexWriter.addDocument(Document doc, Analyzer analyzer)` Adds a document to this index, using the provided analyzer instead of the value of `IndexWriter.getAnalyzer()`.
`protected void` `IndexModifier.init(Directory directory, Analyzer analyzer, boolean create)` Deprecated. Initialize an IndexWriter.
`void` `IndexWriter.updateDocument(Term term, Document doc, Analyzer analyzer)` Updates a document by first deleting the document(s) containing `term` and then adding the new document.

Constructors in org.apache.lucene.index with parameters of type Analyzer
`IndexModifier(Directory directory, Analyzer analyzer, boolean create)` Deprecated. Open an index with write access.
`IndexModifier(File file, Analyzer analyzer, boolean create)` Deprecated. Open an index with write access.
`IndexModifier(String dirName, Analyzer analyzer, boolean create)` Deprecated. Open an index with write access.
`IndexWriter(Directory d, Analyzer a)` Constructs an IndexWriter for the index in `d`, first creating it if it does not already exist.
`IndexWriter(Directory d, Analyzer a, boolean create)` Constructs an IndexWriter for the index in `d`.
`IndexWriter(Directory d, boolean autoCommit, Analyzer a)` Constructs an IndexWriter for the index in `d`, first creating it if it does not already exist.
`IndexWriter(Directory d, boolean autoCommit, Analyzer a, boolean create)` Constructs an IndexWriter for the index in `d`.
`IndexWriter(Directory d, boolean autoCommit, Analyzer a, boolean create, IndexDeletionPolicy deletionPolicy)` Expert: constructs an IndexWriter with a custom `IndexDeletionPolicy`, for the index in `d`.
`IndexWriter(Directory d, boolean autoCommit, Analyzer a, IndexDeletionPolicy deletionPolicy)` Expert: constructs an IndexWriter with a custom `IndexDeletionPolicy`, for the index in `d`, first creating it if it does not already exist.
`IndexWriter(File path, Analyzer a)` Constructs an IndexWriter for the index in `path`, first creating it if it does not already exist.
`IndexWriter(File path, Analyzer a, boolean create)` Constructs an IndexWriter for the index in `path`.
`IndexWriter(String path, Analyzer a)` Constructs an IndexWriter for the index in `path`, first creating it if it does not already exist.
`IndexWriter(String path, Analyzer a, boolean create)` Constructs an IndexWriter for the index in `path`.

Uses of Analyzer in org.apache.lucene.index.memory

Subclasses of Analyzer in org.apache.lucene.index.memory

`class`

`PatternAnalyzer`
Efficient Lucene analyzer/tokenizer that preferably operates on a String rather than a `Reader`, that can flexibly separate text into terms via a regular expression `Pattern` (with behaviour identical to `String.split(String)`), and that combines the functionality of `LetterTokenizer`, `LowerCaseTokenizer`, `WhitespaceTokenizer`, `StopFilter` into a single efficient multi-purpose class.

Methods in org.apache.lucene.index.memory that return Analyzer
`static Analyzer` `AnalyzerUtil.getLoggingAnalyzer(Analyzer child, PrintStream log, String logName)` Returns a simple analyzer wrapper that logs all tokens produced by the underlying child analyzer to the given log stream (typically System.err); Otherwise behaves exactly like the child analyzer, delivering the very same tokens; useful for debugging purposes on custom indexing and/or querying.
`static Analyzer` `AnalyzerUtil.getMaxTokenAnalyzer(Analyzer child, int maxTokens)` Returns an analyzer wrapper that returns at most the first `maxTokens` tokens from the underlying child analyzer, ignoring all remaining tokens.
`static Analyzer` `AnalyzerUtil.getPorterStemmerAnalyzer(Analyzer child)` Returns an English stemming analyzer that stems tokens from the underlying child analyzer according to the Porter stemming algorithm.
`static Analyzer` `AnalyzerUtil.getSynonymAnalyzer(Analyzer child, SynonymMap synonyms, int maxSynonyms)` Returns an analyzer wrapper that wraps the underlying child analyzer's token stream into a `SynonymTokenFilter`.
`static Analyzer` `AnalyzerUtil.getTokenCachingAnalyzer(Analyzer child)` Returns an analyzer wrapper that caches all tokens generated by the underlying child analyzer's token streams, and delivers those cached tokens on subsequent calls to `tokenStream(String fieldName, Reader reader)` if the fieldName has been seen before, altogether ignoring the Reader parameter on cache lookup.

Methods in org.apache.lucene.index.memory with parameters of type Analyzer
`void` `MemoryIndex.addField(String fieldName, String text, Analyzer analyzer)` Convenience method; Tokenizes the given field text and adds the resulting terms to the index; Equivalent to adding an indexed non-keyword Lucene `Field` that is `tokenized`, `not stored`, `termVectorStored with positions` (or `termVectorStored with positions and offsets`),
`static Analyzer` `AnalyzerUtil.getLoggingAnalyzer(Analyzer child, PrintStream log, String logName)` Returns a simple analyzer wrapper that logs all tokens produced by the underlying child analyzer to the given log stream (typically System.err); Otherwise behaves exactly like the child analyzer, delivering the very same tokens; useful for debugging purposes on custom indexing and/or querying.
`static Analyzer` `AnalyzerUtil.getMaxTokenAnalyzer(Analyzer child, int maxTokens)` Returns an analyzer wrapper that returns at most the first `maxTokens` tokens from the underlying child analyzer, ignoring all remaining tokens.
`static String[]` `AnalyzerUtil.getMostFrequentTerms(Analyzer analyzer, String text, int limit)` Returns (frequency:term) pairs for the top N distinct terms (aka words), sorted descending by frequency (and ascending by term, if tied).
`static Analyzer` `AnalyzerUtil.getPorterStemmerAnalyzer(Analyzer child)` Returns an English stemming analyzer that stems tokens from the underlying child analyzer according to the Porter stemming algorithm.
`static Analyzer` `AnalyzerUtil.getSynonymAnalyzer(Analyzer child, SynonymMap synonyms, int maxSynonyms)` Returns an analyzer wrapper that wraps the underlying child analyzer's token stream into a `SynonymTokenFilter`.
`static Analyzer` `AnalyzerUtil.getTokenCachingAnalyzer(Analyzer child)` Returns an analyzer wrapper that caches all tokens generated by the underlying child analyzer's token streams, and delivers those cached tokens on subsequent calls to `tokenStream(String fieldName, Reader reader)` if the fieldName has been seen before, altogether ignoring the Reader parameter on cache lookup.

Uses of Analyzer in org.apache.lucene.queryParser

Methods in org.apache.lucene.queryParser that return Analyzer
`Analyzer` `QueryParser.getAnalyzer()`

Methods in org.apache.lucene.queryParser with parameters of type Analyzer
`static Query` `MultiFieldQueryParser.parse(String[] queries, String[] fields, Analyzer analyzer)` Parses a query which searches on the fields specified.
`static Query` `MultiFieldQueryParser.parse(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.
`static Query` `MultiFieldQueryParser.parse(String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer)` Parses a query, searching on the fields specified.

Constructors in org.apache.lucene.queryParser with parameters of type Analyzer
`MultiFieldQueryParser(String[] fields, Analyzer analyzer)` Creates a MultiFieldQueryParser.
`MultiFieldQueryParser(String[] fields, Analyzer analyzer, Map boosts)` Creates a MultiFieldQueryParser.
`QueryParser(String f, Analyzer a)` Constructs a query parser.

Uses of Analyzer in org.apache.lucene.queryParser.analyzing

Constructors in org.apache.lucene.queryParser.analyzing with parameters of type Analyzer
`AnalyzingQueryParser(String field, Analyzer analyzer)` Constructs a query parser.

Uses of Analyzer in org.apache.lucene.queryParser.precedence

Methods in org.apache.lucene.queryParser.precedence that return Analyzer
`Analyzer` `PrecedenceQueryParser.getAnalyzer()`

Constructors in org.apache.lucene.queryParser.precedence with parameters of type Analyzer
`PrecedenceQueryParser(String f, Analyzer a)` Constructs a query parser.

Uses of Analyzer in org.apache.lucene.search

Constructors in org.apache.lucene.search with parameters of type Analyzer
`FuzzyLikeThisQuery(int maxNumTerms, Analyzer analyzer)`
`QueryTermVector(String queryString, Analyzer analyzer)`

Uses of Analyzer in org.apache.lucene.search.highlight

Methods in org.apache.lucene.search.highlight with parameters of type Analyzer
`static TokenStream` `TokenSources.getAnyTokenStream(IndexReader reader, int docId, String field, Analyzer analyzer)` A convenience method that tries a number of approaches to getting a token stream.
`String` `Highlighter.getBestFragment(Analyzer analyzer, String fieldName, String text)` Highlights chosen terms in a text, extracting the most relevant section.
`String[]` `Highlighter.getBestFragments(Analyzer analyzer, String text, int maxNumFragments)` Deprecated. This method incorrectly hardcodes the choice of fieldname. Use the method of the same name that takes a fieldname.
`String[]` `Highlighter.getBestFragments(Analyzer analyzer, String fieldName, String text, int maxNumFragments)` Highlights chosen terms in a text, extracting the most relevant sections.
`static TokenStream` `TokenSources.getTokenStream(IndexReader reader, int docId, String field, Analyzer analyzer)`

Uses of Analyzer in org.apache.lucene.search.similar

Fields in org.apache.lucene.search.similar declared as Analyzer
`static Analyzer` `MoreLikeThis.DEFAULT_ANALYZER` Default analyzer to parse source doc with.

Methods in org.apache.lucene.search.similar that return Analyzer
`Analyzer` `MoreLikeThisQuery.getAnalyzer()`
`Analyzer` `MoreLikeThis.getAnalyzer()` Returns an analyzer that will be used to parse source doc with.

Methods in org.apache.lucene.search.similar with parameters of type Analyzer
`static Query` `SimilarityQueries.formSimilarQuery(String body, Analyzer a, String field, Set stop)` Simple similarity query generators.
`void` `MoreLikeThisQuery.setAnalyzer(Analyzer analyzer)`
`void` `MoreLikeThis.setAnalyzer(Analyzer analyzer)` Sets the analyzer to use.

Constructors in org.apache.lucene.search.similar with parameters of type Analyzer
`MoreLikeThisQuery(String likeText, String[] moreLikeFields, Analyzer analyzer)`

Uses of Analyzer in org.apache.lucene.swing.models

Methods in org.apache.lucene.swing.models that return Analyzer
`Analyzer` `TableSearcher.getAnalyzer()`
`Analyzer` `ListSearcher.getAnalyzer()`

Methods in org.apache.lucene.swing.models with parameters of type Analyzer
`void` `TableSearcher.setAnalyzer(Analyzer analyzer)`
`void` `ListSearcher.setAnalyzer(Analyzer analyzer)`

Uses of Analyzer in org.apache.lucene.wordnet

Methods in org.apache.lucene.wordnet with parameters of type Analyzer
`static Query` `SynExpand.expand(String query, Searcher syns, Analyzer a, String field, float boost)` Perform synonym expansion on a query.
`static Query` `SynLookup.expand(String query, Searcher syns, Analyzer a, String field, float boost)` Perform synonym expansion on a query.

Uses of Analyzer in org.apache.lucene.xmlparser

Fields in org.apache.lucene.xmlparser declared as Analyzer
`protected Analyzer` `CoreParser.analyzer`

Constructors in org.apache.lucene.xmlparser with parameters of type Analyzer
`CoreParser(Analyzer analyzer, QueryParser parser)`
`CorePlusExtensionsParser(Analyzer analyzer, QueryParser parser)`

Uses of Analyzer in org.apache.lucene.xmlparser.builders

Constructors in org.apache.lucene.xmlparser.builders with parameters of type Analyzer
`FuzzyLikeThisQueryBuilder(Analyzer analyzer)`
`LikeThisQueryBuilder(Analyzer analyzer, String[] defaultFieldNames)`
`SpanOrTermsBuilder(Analyzer analyzer)`
`TermsFilterBuilder(Analyzer analyzer)`
`TermsQueryBuilder(Analyzer analyzer)`

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.