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
IOException
public long updateDocument(Term t, Document d) throws IOException
IOException
public long updateDocuments(Term t, Collection<Document> docs, Analyzer a) throws IOException
IOException
public long updateDocuments(Term t, Collection<Document> docs) throws IOException
IOException
public long deleteDocuments(Term t) throws IOException
IOException
public long deleteDocuments(Term... terms) throws IOException
IOException
public long deleteDocuments(Query q) throws IOException
IOException
public long deleteDocuments(Query... queries) throws IOException
IOException
public long deleteAll() throws IOException
IOException
public long addDocument(Document d, Analyzer a) throws IOException
IOException
public long addDocuments(Collection<Document> docs, Analyzer a) throws IOException
IOException
public long addDocument(Document d) throws IOException
IOException
public long addDocuments(Collection<Document> docs) throws IOException
IOException
public long addIndexes(Directory... dirs) throws CorruptIndexException, IOException
CorruptIndexException
IOException
public long addIndexes(IndexReader... readers) throws CorruptIndexException, IOException
CorruptIndexException
IOException
public long getGeneration()
public IndexWriter getIndexWriter()