public static class NRTManager.TrackingIndexWriter
extends java.lang.Object
| Constructor and Description |
|---|
TrackingIndexWriter(IndexWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
long |
addDocument(Document d) |
long |
addDocument(Document d,
Analyzer a) |
long |
addDocuments(java.util.Collection<Document> docs) |
long |
addDocuments(java.util.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,
java.util.Collection<Document> docs) |
long |
updateDocuments(Term t,
java.util.Collection<Document> docs,
Analyzer a) |
public TrackingIndexWriter(IndexWriter writer)
public long updateDocument(Term t, Document d, Analyzer a) throws java.io.IOException
java.io.IOExceptionpublic long updateDocument(Term t, Document d) throws java.io.IOException
java.io.IOExceptionpublic long updateDocuments(Term t, java.util.Collection<Document> docs, Analyzer a) throws java.io.IOException
java.io.IOExceptionpublic long updateDocuments(Term t, java.util.Collection<Document> docs) throws java.io.IOException
java.io.IOExceptionpublic long deleteDocuments(Term t) throws java.io.IOException
java.io.IOExceptionpublic long deleteDocuments(Term... terms) throws java.io.IOException
java.io.IOExceptionpublic long deleteDocuments(Query q) throws java.io.IOException
java.io.IOExceptionpublic long deleteDocuments(Query... queries) throws java.io.IOException
java.io.IOExceptionpublic long deleteAll()
throws java.io.IOException
java.io.IOExceptionpublic long addDocument(Document d, Analyzer a) throws java.io.IOException
java.io.IOExceptionpublic long addDocuments(java.util.Collection<Document> docs, Analyzer a) throws java.io.IOException
java.io.IOExceptionpublic long addDocument(Document d) throws java.io.IOException
java.io.IOExceptionpublic long addDocuments(java.util.Collection<Document> docs) throws java.io.IOException
java.io.IOExceptionpublic long addIndexes(Directory... dirs) throws CorruptIndexException, java.io.IOException
CorruptIndexExceptionjava.io.IOExceptionpublic long addIndexes(IndexReader... readers) throws CorruptIndexException, java.io.IOException
CorruptIndexExceptionjava.io.IOExceptionpublic long getGeneration()
public IndexWriter getIndexWriter()
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.