Package | Description |
---|---|
org.apache.lucene.analysis |
API and code to convert text into indexable/searchable tokens.
|
org.apache.lucene.analysis.standard |
Standards-based analyzers implemented with JFlex.
|
org.apache.lucene.collation |
CollationKeyFilter
converts each token into its binary CollationKey using the
provided Collator , and then encode the CollationKey
as a String using
IndexableBinaryStringTools , to allow it to be
stored as an index term. |
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 | Description |
---|---|---|
class |
KeywordAnalyzer |
"Tokenizes" the entire stream as a single token.
|
class |
LimitTokenCountAnalyzer |
This Analyzer limits the number of tokens while indexing.
|
class |
PerFieldAnalyzerWrapper |
This analyzer is used to facilitate scenarios where different
fields require different analysis techniques.
|
class |
ReusableAnalyzerBase |
An convenience subclass of Analyzer that makes it easy to implement
TokenStream reuse. |
class |
SimpleAnalyzer |
|
class |
StopAnalyzer |
|
class |
StopwordAnalyzerBase |
Base class for Analyzers that need to make use of stopword sets.
|
class |
WhitespaceAnalyzer |
An Analyzer that uses
WhitespaceTokenizer . |
Modifier and Type | Method | Description |
---|---|---|
void |
PerFieldAnalyzerWrapper.addAnalyzer(String fieldName,
Analyzer analyzer) |
Deprecated.
Changing the Analyzer for a field after instantiation prevents
reusability.
|
Constructor | Description |
---|---|
LimitTokenCountAnalyzer(Analyzer delegate,
int maxTokenCount) |
Build an analyzer that limits the maximum number of tokens per field.
|
PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer) |
Constructs with default analyzer.
|
PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer,
Map<String,Analyzer> fieldAnalyzers) |
Constructs with default analyzer and a map of analyzers to use for
specific fields.
|
Constructor | Description |
---|---|
PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer,
Map<String,Analyzer> fieldAnalyzers) |
Constructs with default analyzer and a map of analyzers to use for
specific fields.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ClassicAnalyzer |
Filters
ClassicTokenizer with ClassicFilter , LowerCaseFilter and StopFilter , using a list of
English stop words. |
class |
StandardAnalyzer |
Filters
StandardTokenizer with StandardFilter , LowerCaseFilter and StopFilter , using a list of
English stop words. |
class |
UAX29URLEmailAnalyzer |
Filters
UAX29URLEmailTokenizer
with StandardFilter ,
LowerCaseFilter and
StopFilter , using a list of
English stop words. |
Modifier and Type | Class | Description |
---|---|---|
class |
CollationKeyAnalyzer |
Filters
KeywordTokenizer with CollationKeyFilter . |
Modifier and Type | Method | Description |
---|---|---|
Analyzer |
IndexWriter.getAnalyzer() |
Returns the analyzer used by this index.
|
Analyzer |
IndexWriterConfig.getAnalyzer() |
Returns the default analyzer to use for indexing documents.
|
Modifier and Type | Method | Description |
---|---|---|
void |
IndexWriter.addDocument(Document doc,
Analyzer analyzer) |
Adds a document to this index, using the provided analyzer instead of the
value of
IndexWriter.getAnalyzer() . |
void |
IndexWriter.addDocuments(Collection<Document> 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.
|
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. |
void |
IndexWriter.updateDocuments(Term delTerm,
Collection<Document> 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 | Description |
---|---|
IndexWriter(Directory d,
Analyzer a,
boolean create,
IndexDeletionPolicy deletionPolicy,
IndexWriter.MaxFieldLength mfl) |
Deprecated.
use
IndexWriter(Directory, IndexWriterConfig) instead |
IndexWriter(Directory d,
Analyzer a,
boolean create,
IndexWriter.MaxFieldLength mfl) |
Deprecated.
use
IndexWriter(Directory, IndexWriterConfig) instead |
IndexWriter(Directory d,
Analyzer a,
IndexDeletionPolicy deletionPolicy,
IndexWriter.MaxFieldLength mfl) |
Deprecated.
use
IndexWriter(Directory, IndexWriterConfig) instead |
IndexWriter(Directory d,
Analyzer a,
IndexDeletionPolicy deletionPolicy,
IndexWriter.MaxFieldLength mfl,
IndexCommit commit) |
Deprecated.
use
IndexWriter(Directory, IndexWriterConfig) instead |
IndexWriter(Directory d,
Analyzer a,
IndexWriter.MaxFieldLength mfl) |
Deprecated.
use
IndexWriter(Directory, IndexWriterConfig) instead |
IndexWriterConfig(Version matchVersion,
Analyzer analyzer) |
Modifier and Type | Method | Description |
---|---|---|
Analyzer |
QueryParser.getAnalyzer() |
Modifier and Type | Method | Description |
---|---|---|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String[] queries,
String[] fields,
Analyzer analyzer) |
Parses a query which searches on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String[] queries,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer) |
Parses a query, searching on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String query,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer) |
Parses a query, searching on the fields specified.
|
Constructor | Description |
---|---|
MultiFieldQueryParser(Version matchVersion,
String[] fields,
Analyzer analyzer) |
Creates a MultiFieldQueryParser.
|
MultiFieldQueryParser(Version matchVersion,
String[] fields,
Analyzer analyzer,
Map<String,Float> boosts) |
Creates a MultiFieldQueryParser.
|
QueryParser(Version matchVersion,
String f,
Analyzer a) |
Constructs a query parser.
|
Modifier and Type | Method | Description |
---|---|---|
long |
NRTManager.TrackingIndexWriter.addDocument(Document d,
Analyzer a) |
|
long |
NRTManager.TrackingIndexWriter.addDocuments(Collection<Document> docs,
Analyzer a) |
|
long |
NRTManager.TrackingIndexWriter.updateDocument(Term t,
Document d,
Analyzer a) |
|
long |
NRTManager.TrackingIndexWriter.updateDocuments(Term t,
Collection<Document> docs,
Analyzer a) |
Constructor | Description |
---|---|
QueryTermVector(String queryString,
Analyzer analyzer) |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.