public static class NRTManager.TrackingIndexWriter extends Object
| Constructor and Description |
|---|
NRTManager.TrackingIndexWriter(IndexWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
long |
addDocument(Document d) |
long |
addDocument(Document d,
Analyzer a) |
long |
addDocuments(Collection<Document> docs) |
long |
addDocuments(Collection<Document> docs,
Analyzer a) |
long |
addIndexes(Directory... dirs) |
long |
addIndexes(IndexReader... readers) |
long |
deleteAll() |
long |
deleteDocuments(Query... queries) |
long |
deleteDocuments(Query q) |
long |
deleteDocuments(Term... terms) |
long |
deleteDocuments(Term t) |
long |
getGeneration() |
IndexWriter |
getIndexWriter() |
long |
updateDocument(Term t,
Document d) |
long |
updateDocument(Term t,
Document d,
Analyzer a) |
long |
updateDocuments(Term t,
Collection<Document> docs) |
long |
updateDocuments(Term t,
Collection<Document> docs,
Analyzer a) |
public NRTManager.TrackingIndexWriter(IndexWriter writer)
public long updateDocument(Term t, Document d, Analyzer a) throws IOException
IOExceptionpublic long updateDocument(Term t, Document d) throws IOException
IOExceptionpublic long updateDocuments(Term t, Collection<Document> docs, Analyzer a) throws IOException
IOExceptionpublic long updateDocuments(Term t, Collection<Document> docs) throws IOException
IOExceptionpublic long deleteDocuments(Term t) throws IOException
IOExceptionpublic long deleteDocuments(Term... terms) throws IOException
IOExceptionpublic long deleteDocuments(Query q) throws IOException
IOExceptionpublic long deleteDocuments(Query... queries) throws IOException
IOExceptionpublic long deleteAll()
throws IOException
IOExceptionpublic long addDocument(Document d, Analyzer a) throws IOException
IOExceptionpublic long addDocuments(Collection<Document> docs, Analyzer a) throws IOException
IOExceptionpublic long addDocument(Document d) throws IOException
IOExceptionpublic long addDocuments(Collection<Document> docs) throws IOException
IOExceptionpublic long addIndexes(Directory... dirs) throws CorruptIndexException, IOException
CorruptIndexExceptionIOExceptionpublic long addIndexes(IndexReader... readers) throws CorruptIndexException, IOException
CorruptIndexExceptionIOExceptionpublic long getGeneration()
public IndexWriter getIndexWriter()