Package | Description |
---|---|
org.apache.lucene.analysis |
API and code to convert text into indexable/searchable tokens.
|
org.apache.lucene.analysis.standard |
A fast grammar-based tokenizer constructed with JFlex.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.queryParser |
A simple query parser implemented with JavaCC.
|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Class and Description |
---|---|
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
|
class |
StopAnalyzer
|
class |
WhitespaceAnalyzer
An Analyzer that uses
WhitespaceTokenizer . |
Modifier and Type | Method and Description |
---|---|
void |
PerFieldAnalyzerWrapper.addAnalyzer(java.lang.String fieldName,
Analyzer analyzer)
Defines an analyzer to use for the specified field.
|
Constructor and Description |
---|
PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer)
Constructs with default analyzer.
|
PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer,
java.util.Map fieldAnalyzers)
Constructs with default analyzer and a map of analyzers to use for
specific fields.
|
Modifier and Type | Class and Description |
---|---|
class |
StandardAnalyzer
Filters
StandardTokenizer with StandardFilter , LowerCaseFilter and StopFilter , using a list of
English stop words. |
Modifier and Type | Field and Description |
---|---|
protected Analyzer |
IndexModifier.analyzer
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Analyzer |
IndexWriter.getAnalyzer()
Returns the analyzer used by this index.
|
Modifier and Type | Method and Description |
---|---|
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. |
Constructor and Description |
---|
IndexModifier(Directory directory,
Analyzer analyzer,
boolean create)
Deprecated.
Open an index with write access.
|
IndexModifier(java.io.File file,
Analyzer analyzer,
boolean create)
Deprecated.
Open an index with write access.
|
IndexModifier(java.lang.String dirName,
Analyzer analyzer,
boolean create)
Deprecated.
Open an index with write access.
|
IndexWriter(Directory d,
Analyzer a)
Deprecated.
This constructor will be removed in the 3.0 release.
Use
IndexWriter.IndexWriter(Directory,Analyzer,MaxFieldLength)
instead, and call IndexWriter.commit() when needed. |
IndexWriter(Directory d,
Analyzer a,
boolean create)
Deprecated.
This constructor will be removed in the 3.0
release, and call
IndexWriter.commit() when needed.
Use IndexWriter.IndexWriter(Directory,Analyzer,boolean,MaxFieldLength) instead. |
IndexWriter(Directory d,
Analyzer a,
boolean create,
IndexDeletionPolicy deletionPolicy,
IndexWriter.MaxFieldLength mfl)
Expert: constructs an IndexWriter with a custom
IndexDeletionPolicy , for the index in d . |
IndexWriter(Directory d,
Analyzer a,
boolean create,
IndexWriter.MaxFieldLength mfl)
Constructs an IndexWriter for the index in
d . |
IndexWriter(Directory d,
Analyzer a,
IndexDeletionPolicy deletionPolicy,
IndexWriter.MaxFieldLength mfl)
Expert: constructs an IndexWriter with a custom
IndexDeletionPolicy , for the index in d ,
first creating it if it does not already exist. |
IndexWriter(Directory d,
Analyzer a,
IndexDeletionPolicy deletionPolicy,
IndexWriter.MaxFieldLength mfl,
IndexCommit commit)
Expert: constructs an IndexWriter on specific commit
point, with a custom
IndexDeletionPolicy , for
the index in d . |
IndexWriter(Directory d,
Analyzer a,
IndexWriter.MaxFieldLength mfl)
Constructs an IndexWriter for the index in
d , first creating it if it does not
already exist. |
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a)
Deprecated.
This constructor will be removed in the 3.0 release.
Use
IndexWriter.IndexWriter(Directory,Analyzer,MaxFieldLength)
instead, and call IndexWriter.commit() when needed. |
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a,
boolean create)
Deprecated.
This constructor will be removed in the 3.0 release.
Use
IndexWriter.IndexWriter(Directory,Analyzer,boolean,MaxFieldLength)
instead, and call IndexWriter.commit() when needed. |
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a,
boolean create,
IndexDeletionPolicy deletionPolicy)
Deprecated.
This constructor will be removed in the 3.0 release.
Use
IndexWriter.IndexWriter(Directory,Analyzer,boolean,IndexDeletionPolicy,MaxFieldLength)
instead, and call IndexWriter.commit() when needed. |
IndexWriter(Directory d,
boolean autoCommit,
Analyzer a,
IndexDeletionPolicy deletionPolicy)
Deprecated.
This constructor will be removed in the 3.0 release.
Use
IndexWriter.IndexWriter(Directory,Analyzer,IndexDeletionPolicy,MaxFieldLength)
instead, and call IndexWriter.commit() when needed. |
IndexWriter(java.io.File path,
Analyzer a)
Deprecated.
This constructor will be removed in the 3.0 release.
Use
IndexWriter.IndexWriter(Directory,Analyzer,MaxFieldLength)
instead, and call IndexWriter.commit() when needed. |
IndexWriter(java.io.File path,
Analyzer a,
boolean create)
Deprecated.
This constructor will be removed in the 3.0 release.
Use
IndexWriter.IndexWriter(Directory,Analyzer,boolean,MaxFieldLength)
instead, and call IndexWriter.commit() when needed. |
IndexWriter(java.io.File path,
Analyzer a,
boolean create,
IndexWriter.MaxFieldLength mfl)
|
IndexWriter(java.io.File path,
Analyzer a,
IndexWriter.MaxFieldLength mfl)
Deprecated.
|
IndexWriter(java.lang.String path,
Analyzer a)
Deprecated.
This constructor will be removed in the 3.0
release, and call
IndexWriter.commit() when needed.
Use IndexWriter.IndexWriter(Directory,Analyzer,MaxFieldLength) instead. |
IndexWriter(java.lang.String path,
Analyzer a,
boolean create)
Deprecated.
This constructor will be removed in the 3.0 release.
Use
IndexWriter.IndexWriter(Directory,Analyzer,boolean,MaxFieldLength)
instead, and call IndexWriter.commit() when needed. |
IndexWriter(java.lang.String path,
Analyzer a,
boolean create,
IndexWriter.MaxFieldLength mfl)
|
IndexWriter(java.lang.String path,
Analyzer a,
IndexWriter.MaxFieldLength mfl)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Analyzer |
QueryParser.getAnalyzer() |
Modifier and Type | Method and Description |
---|---|
static Query |
MultiFieldQueryParser.parse(java.lang.String[] queries,
java.lang.String[] fields,
Analyzer analyzer)
Deprecated.
|
static Query |
MultiFieldQueryParser.parse(java.lang.String[] queries,
java.lang.String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Deprecated.
|
static Query |
MultiFieldQueryParser.parse(java.lang.String query,
java.lang.String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Deprecated.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
java.lang.String[] queries,
java.lang.String[] fields,
Analyzer analyzer)
Parses a query which searches on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
java.lang.String[] queries,
java.lang.String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
java.lang.String query,
java.lang.String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
Constructor and Description |
---|
MultiFieldQueryParser(java.lang.String[] fields,
Analyzer analyzer)
Deprecated.
Please use
MultiFieldQueryParser.MultiFieldQueryParser(Version, String[], Analyzer) instead |
MultiFieldQueryParser(java.lang.String[] fields,
Analyzer analyzer,
java.util.Map boosts)
Deprecated.
|
MultiFieldQueryParser(Version matchVersion,
java.lang.String[] fields,
Analyzer analyzer)
Creates a MultiFieldQueryParser.
|
MultiFieldQueryParser(Version matchVersion,
java.lang.String[] fields,
Analyzer analyzer,
java.util.Map boosts)
Creates a MultiFieldQueryParser.
|
QueryParser(java.lang.String f,
Analyzer a)
Deprecated.
|
QueryParser(Version matchVersion,
java.lang.String f,
Analyzer a)
Constructs a query parser.
|
Constructor and Description |
---|
QueryTermVector(java.lang.String queryString,
Analyzer analyzer) |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.