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. |
Document |
FilterIndexReader.document(int n,
FieldSelector fieldSelector) |
Document |
SegmentReader.document(int n,
FieldSelector fieldSelector) |
Document |
ParallelReader.document(int n,
FieldSelector fieldSelector) |
abstract Document |
IndexReader.document(int n,
FieldSelector fieldSelector)
Get the
Document at the n
th position. |
Document |
MultiReader.document(int n,
FieldSelector fieldSelector) |
Modifier and Type | Method and Description |
---|---|
void |
IndexModifier.addDocument(Document doc)
Deprecated.
Adds a document to this index.
|
void |
IndexWriter.addDocument(Document doc)
Adds a document to this index.
|
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() . |
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 |
---|---|
Document |
Searchable.doc(int i)
Returns the stored fields of document
i . |
Document |
IndexSearcher.doc(int i) |
Document |
MultiSearcher.doc(int n) |
abstract Document |
Searcher.doc(int i) |
Document |
Hits.doc(int n)
Deprecated.
Returns the stored fields of the nth document in this set.
|
Document |
Searchable.doc(int n,
FieldSelector fieldSelector)
Get the
Document at the n th position. |
Document |
IndexSearcher.doc(int i,
FieldSelector fieldSelector) |
Document |
MultiSearcher.doc(int n,
FieldSelector fieldSelector) |
Document |
Hit.getDocument()
Deprecated.
Returns document for this hit.
|
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.