Package | Description |
---|---|
org.apache.lucene.analysis |
API and code to convert text into indexable/searchable tokens.
|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
AnalyzerWrapper
Extension to
Analyzer suitable for Analyzers which wrap
other Analyzers. |
Modifier and Type | Method and Description |
---|---|
protected abstract Analyzer |
AnalyzerWrapper.getWrappedAnalyzer(String fieldName)
Retrieves the wrapped Analyzer appropriate for analyzing the field with
the given name
|
Modifier and Type | Method and Description |
---|---|
abstract Analyzer.TokenStreamComponents |
Analyzer.ReuseStrategy.getReusableComponents(Analyzer analyzer,
String fieldName)
Gets the reusable TokenStreamComponents for the field with the given name.
|
Analyzer.TokenStreamComponents |
Analyzer.GlobalReuseStrategy.getReusableComponents(Analyzer analyzer,
String fieldName)
Deprecated.
|
Analyzer.TokenStreamComponents |
Analyzer.PerFieldReuseStrategy.getReusableComponents(Analyzer analyzer,
String fieldName)
Deprecated.
|
protected Object |
Analyzer.ReuseStrategy.getStoredValue(Analyzer analyzer)
Returns the currently stored value.
|
abstract void |
Analyzer.ReuseStrategy.setReusableComponents(Analyzer analyzer,
String fieldName,
Analyzer.TokenStreamComponents components)
Stores the given TokenStreamComponents as the reusable components for the
field with the give name.
|
void |
Analyzer.GlobalReuseStrategy.setReusableComponents(Analyzer analyzer,
String fieldName,
Analyzer.TokenStreamComponents components)
Deprecated.
|
void |
Analyzer.PerFieldReuseStrategy.setReusableComponents(Analyzer analyzer,
String fieldName,
Analyzer.TokenStreamComponents components)
Deprecated.
|
protected void |
Analyzer.ReuseStrategy.setStoredValue(Analyzer analyzer,
Object storedValue)
Sets the stored value.
|
Modifier and Type | Method and Description |
---|---|
TokenStream |
Field.tokenStream(Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
Analyzer |
LiveIndexWriterConfig.getAnalyzer()
Returns the default analyzer to use for indexing documents.
|
Analyzer |
IndexWriterConfig.getAnalyzer() |
Analyzer |
IndexWriter.getAnalyzer()
Returns the analyzer used by this index.
|
Modifier and Type | Method and Description |
---|---|
long |
TrackingIndexWriter.addDocument(Iterable<? extends IndexableField> d,
Analyzer a)
Calls
IndexWriter.addDocument(Iterable,Analyzer) and
returns the generation that reflects this change. |
void |
IndexWriter.addDocument(Iterable<? extends IndexableField> doc,
Analyzer analyzer)
Adds a document to this index, using the provided analyzer instead of the
value of
IndexWriter.getAnalyzer() . |
long |
TrackingIndexWriter.addDocuments(Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer a)
Calls
IndexWriter.addDocuments(Iterable,Analyzer) and
returns the generation that reflects this change. |
void |
IndexWriter.addDocuments(Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer analyzer)
Atomically adds a block of documents, analyzed using the
provided analyzer, with sequentially assigned document
IDs, such that an external reader will see all or none
of the documents.
|
TokenStream |
IndexableField.tokenStream(Analyzer analyzer)
Creates the TokenStream used for indexing this field.
|
long |
TrackingIndexWriter.updateDocument(Term t,
Iterable<? extends IndexableField> d,
Analyzer a)
Calls
IndexWriter.updateDocument(Term,Iterable,Analyzer)
and returns the generation that reflects this change. |
void |
IndexWriter.updateDocument(Term term,
Iterable<? extends IndexableField> doc,
Analyzer analyzer)
Updates a document by first deleting the document(s)
containing
term and then adding the new
document. |
long |
TrackingIndexWriter.updateDocuments(Term t,
Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer a)
Calls
IndexWriter.updateDocuments(Term,Iterable,Analyzer)
and returns the generation that reflects this change. |
void |
IndexWriter.updateDocuments(Term delTerm,
Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer analyzer)
Atomically deletes documents matching the provided
delTerm and adds a block of documents, analyzed using
the provided analyzer, with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
|
Constructor and Description |
---|
IndexWriterConfig(Version matchVersion,
Analyzer analyzer)
|
Modifier and Type | Method and Description |
---|---|
Analyzer |
QueryBuilder.getAnalyzer()
Returns the analyzer.
|
Modifier and Type | Method and Description |
---|---|
protected Query |
QueryBuilder.createFieldQuery(Analyzer analyzer,
BooleanClause.Occur operator,
String field,
String queryText,
boolean quoted,
int phraseSlop)
Creates a query from the analysis chain.
|
void |
QueryBuilder.setAnalyzer(Analyzer analyzer)
Sets the analyzer used to tokenize text.
|
Constructor and Description |
---|
QueryBuilder(Analyzer analyzer)
Creates a new QueryBuilder using the given analyzer.
|
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.