com.atlassian.confluence.search.lucene
Class IndexReaderUtils

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.IndexReaderUtils

public class IndexReaderUtils
extends Object

Utility class for extensions to lucene's IndexReader.


Constructor Summary
IndexReaderUtils()
           
 
Method Summary
static void deleteDocuments(org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.Term... term)
          IndexReader doesn't currently supporting deleting documents based on multiple terms.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexReaderUtils

public IndexReaderUtils()
Method Detail

deleteDocuments

public static void deleteDocuments(org.apache.lucene.index.IndexReader reader,
                                   org.apache.lucene.index.Term... term)
                            throws IOException
IndexReader doesn't currently supporting deleting documents based on multiple terms. This method allows this.

Throws:
IOException


Copyright © 2003-2012 Atlassian. All Rights Reserved.