com.atlassian.confluence.search.lucene
Class ConfluenceLuceneConnection

java.lang.Object
  extended by com.atlassian.bonnie.LuceneConnection
      extended by com.atlassian.confluence.search.lucene.ConfluenceLuceneConnection
All Implemented Interfaces:
com.atlassian.bonnie.ILuceneConnection

public class ConfluenceLuceneConnection
extends com.atlassian.bonnie.LuceneConnection


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bonnie.LuceneConnection
com.atlassian.bonnie.LuceneConnection.TempIndexWriterData
 
Nested classes/interfaces inherited from interface com.atlassian.bonnie.ILuceneConnection
com.atlassian.bonnie.ILuceneConnection.BatchUpdateAction, com.atlassian.bonnie.ILuceneConnection.Configuration, com.atlassian.bonnie.ILuceneConnection.ReaderAction, com.atlassian.bonnie.ILuceneConnection.SearcherAction, com.atlassian.bonnie.ILuceneConnection.WriterAction
 
Field Summary
protected static org.apache.log4j.Logger log
          Logger.
 
Fields inherited from class com.atlassian.bonnie.LuceneConnection
analyzerForIndexing, LOG, REINDEXING_FILENAME, searcherOpensNewReader, WRITER_BATCH, WRITER_DEFAULT, WRITER_INTERACTIVE
 
Fields inherited from interface com.atlassian.bonnie.ILuceneConnection
DEFAULT_CONFIGURATION
 
Constructor Summary
ConfluenceLuceneConnection()
           
ConfluenceLuceneConnection(com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory, BootstrapManager bootstrapManager)
           
 
Method Summary
 java.io.File getIndexDir()
           
protected  org.apache.lucene.search.IndexSearcher getSearcher()
           
 java.lang.String getTmpDir()
           
 boolean isSearcherCurrent()
           
 void refreshSearcher()
           
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setTmpDir(java.lang.String tmpDir)
           
 
Methods inherited from class com.atlassian.bonnie.LuceneConnection
close, flushWriter, getDirectory, getNumDocs, getReader, getWriter, getWriter, isIndexCreated, isReIndexing, leakSearcher, optimize, recreateIndexDirectory, setAlwaysUnlock, setIndexDir, setReIndexing, setSearcherOpensNewReader, shouldCreateIndexDirectory, truncateIndex, unlockIfNeeded, withBatchUpdate, withDeleteAndWrites, withReader, withReaderAndDeletes, withSearch, withWriter, withWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Logger.

Constructor Detail

ConfluenceLuceneConnection

public ConfluenceLuceneConnection()

ConfluenceLuceneConnection

public ConfluenceLuceneConnection(com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory,
                                  BootstrapManager bootstrapManager)
Method Detail

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

getIndexDir

public java.io.File getIndexDir()
Overrides:
getIndexDir in class com.atlassian.bonnie.LuceneConnection

isSearcherCurrent

public boolean isSearcherCurrent()
                          throws java.io.IOException
Throws:
java.io.IOException

getSearcher

protected org.apache.lucene.search.IndexSearcher getSearcher()
                                                      throws java.io.IOException
Overrides:
getSearcher in class com.atlassian.bonnie.LuceneConnection
Throws:
java.io.IOException

refreshSearcher

public void refreshSearcher()
                     throws java.io.IOException
Throws:
java.io.IOException

getTmpDir

public java.lang.String getTmpDir()

setTmpDir

public void setTmpDir(java.lang.String tmpDir)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.