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.IOException
public long updateDocument(Term t, Document d) throws java.io.IOException
java.io.IOException
public long updateDocuments(Term t, java.util.Collection<Document> docs, Analyzer a) throws java.io.IOException
java.io.IOException
public long updateDocuments(Term t, java.util.Collection<Document> docs) throws java.io.IOException
java.io.IOException
public long deleteDocuments(Term t) throws java.io.IOException
java.io.IOException
public long deleteDocuments(Term... terms) throws java.io.IOException
java.io.IOException
public long deleteDocuments(Query q) throws java.io.IOException
java.io.IOException
public long deleteDocuments(Query... queries) throws java.io.IOException
java.io.IOException
public long deleteAll() throws java.io.IOException
java.io.IOException
public long addDocument(Document d, Analyzer a) throws java.io.IOException
java.io.IOException
public long addDocuments(java.util.Collection<Document> docs, Analyzer a) throws java.io.IOException
java.io.IOException
public long addDocument(Document d) throws java.io.IOException
java.io.IOException
public long addDocuments(java.util.Collection<Document> docs) throws java.io.IOException
java.io.IOException
public long addIndexes(Directory... dirs) throws CorruptIndexException, java.io.IOException
CorruptIndexException
java.io.IOException
public long addIndexes(IndexReader... readers) throws CorruptIndexException, java.io.IOException
CorruptIndexException
java.io.IOException
public long getGeneration()
public IndexWriter getIndexWriter()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.