| Package | Description |
|---|---|
| org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
| org.apache.lucene.index |
Code to maintain and access indices.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Document
Documents are the unit of indexing and search.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IndexWriter.addDocument(IndexDocument doc)
Adds a document to this index.
|
long |
TrackingIndexWriter.addDocument(IndexDocument d)
Calls
IndexWriter.addDocument(IndexDocument)
and returns the generation that reflects this change. |
void |
IndexWriter.addDocument(IndexDocument doc,
Analyzer analyzer)
Adds a document to this index, using the provided analyzer instead of the
value of
IndexWriter.getAnalyzer(). |
long |
TrackingIndexWriter.addDocument(IndexDocument d,
Analyzer a)
Calls
IndexWriter.addDocument(IndexDocument,Analyzer) and
returns the generation that reflects this change. |
void |
IndexWriter.updateDocument(Term term,
IndexDocument doc)
Updates a document by first deleting the document(s)
containing
term and then adding the new
document. |
long |
TrackingIndexWriter.updateDocument(Term t,
IndexDocument d)
Calls
IndexWriter.updateDocument(Term,IndexDocument) and
returns the generation that reflects this change. |
void |
IndexWriter.updateDocument(Term term,
IndexDocument doc,
Analyzer analyzer)
Updates a document by first deleting the document(s)
containing
term and then adding the new
document. |
long |
TrackingIndexWriter.updateDocument(Term t,
IndexDocument d,
Analyzer a)
Calls
IndexWriter.updateDocument(Term,IndexDocument,Analyzer)
and returns the generation that reflects this change. |
| Modifier and Type | Method and Description |
|---|---|
void |
IndexWriter.addDocuments(Iterable<? extends IndexDocument> docs)
Atomically adds a block of documents with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
|
long |
TrackingIndexWriter.addDocuments(Iterable<? extends IndexDocument> docs)
Calls
IndexWriter.addDocuments(Iterable) and
returns the generation that reflects this change. |
void |
IndexWriter.addDocuments(Iterable<? extends IndexDocument> 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.
|
long |
TrackingIndexWriter.addDocuments(Iterable<? extends IndexDocument> docs,
Analyzer a)
Calls
IndexWriter.addDocuments(Iterable,Analyzer) and
returns the generation that reflects this change. |
void |
IndexWriter.updateDocuments(Term delTerm,
Iterable<? extends IndexDocument> docs)
Atomically deletes documents matching the provided
delTerm and adds a block of documents with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
|
long |
TrackingIndexWriter.updateDocuments(Term t,
Iterable<? extends IndexDocument> docs)
Calls
IndexWriter.updateDocuments(Term,Iterable) and returns
the generation that reflects this change. |
void |
IndexWriter.updateDocuments(Term delTerm,
Iterable<? extends IndexDocument> 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.
|
long |
TrackingIndexWriter.updateDocuments(Term t,
Iterable<? extends IndexDocument> docs,
Analyzer a)
Calls
IndexWriter.updateDocuments(Term,Iterable,Analyzer)
and returns the generation that reflects this change. |
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.