Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Method and Description |
---|---|
Document |
IndexReader.document(int n)
Returns the stored fields of the
n th
Document in this index. |
abstract Document |
IndexReader.document(int n,
FieldSelector fieldSelector)
Get the
Document at the n
th position. |
Document |
SegmentReader.document(int n,
FieldSelector fieldSelector) |
Document |
MultiReader.document(int n,
FieldSelector fieldSelector) |
Document |
FilterIndexReader.document(int n,
FieldSelector fieldSelector) |
Document |
ParallelReader.document(int n,
FieldSelector fieldSelector) |
Modifier and Type | Method and Description |
---|---|
void |
FieldInfos.add(Document doc)
Adds field info for a Document.
|
void |
IndexWriter.addDocument(Document doc)
Adds a document to this index.
|
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.updateDocument(Term term,
Document doc)
Updates a document by first deleting the document(s)
containing
term and then adding the new
document. |
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. |
Modifier and Type | Method and Description |
---|---|
void |
IndexWriter.addDocuments(Collection<Document> 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.
|
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.updateDocuments(Term delTerm,
Collection<Document> 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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Document |
MultiSearcher.doc(int n)
Deprecated.
|
Document |
Searchable.doc(int i)
Deprecated.
Returns the stored fields of document
i . |
abstract Document |
Searcher.doc(int i)
Deprecated.
|
Document |
IndexSearcher.doc(int docID) |
Document |
MultiSearcher.doc(int n,
FieldSelector fieldSelector)
Deprecated.
|
Document |
Searchable.doc(int n,
FieldSelector fieldSelector)
Deprecated.
Get the
Document at the n th position. |
abstract Document |
Searcher.doc(int docid,
FieldSelector fieldSelector)
Deprecated.
|
Document |
IndexSearcher.doc(int docID,
FieldSelector fieldSelector) |
Modifier and Type | Method and Description |
---|---|
long |
NRTManager.TrackingIndexWriter.addDocument(Document d) |
long |
NRTManager.TrackingIndexWriter.addDocument(Document d,
Analyzer a) |
long |
NRTManager.TrackingIndexWriter.updateDocument(Term t,
Document d) |
long |
NRTManager.TrackingIndexWriter.updateDocument(Term t,
Document d,
Analyzer a) |
Modifier and Type | Method and Description |
---|---|
long |
NRTManager.TrackingIndexWriter.addDocuments(Collection<Document> docs) |
long |
NRTManager.TrackingIndexWriter.addDocuments(Collection<Document> docs,
Analyzer a) |
long |
NRTManager.TrackingIndexWriter.updateDocuments(Term t,
Collection<Document> docs) |
long |
NRTManager.TrackingIndexWriter.updateDocuments(Term t,
Collection<Document> docs,
Analyzer a) |