com.atlassian.bamboo.index
Class IndexConnectionManager
java.lang.Object
com.atlassian.bamboo.index.IndexConnectionManager
public class IndexConnectionManager
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY_INDEX_DIR
public static final String PROPERTY_INDEX_DIR
- See Also:
- Constant Field Values
BAMBOO_HOME_CONSTANT
public static final String BAMBOO_HOME_CONSTANT
- See Also:
- Constant Field Values
IndexConnectionManager
public IndexConnectionManager()
throws IOException
- Throws:
IOException
IndexConnectionManager
public IndexConnectionManager(Analyzer analyzer)
throws IOException
- Throws:
IOException
optimize
public void optimize()
throws IOException
- Throws:
IOException
index
public void index(Document doc)
throws IOException
- Throws:
IOException
unIndex
public void unIndex(int i)
throws IOException
- Throws:
IOException
getReader
public IndexReader getReader()
throws IOException
- Throws:
IOException
getWriter
public IndexWriter getWriter()
throws IOException
- Throws:
IOException
getSearcher
public IndexSearcher getSearcher()
throws IOException
- Throws:
IOException
recreateIndex
public void recreateIndex()
closeWriter
public void closeWriter()
closeReader
public void closeReader()
closeSearcher
public void closeSearcher()
createIndex
public void createIndex(boolean forceCreate)
throws LuceneException
- Create the index if it doesn't exist already.
- Parameters:
forceCreate
- - blow away exsting if exists.
- Throws:
LuceneException
getIndexDir
public File getIndexDir()
throws IOException
- Throws:
IOException
setIndexDir
public void setIndexDir(String path)
throws IOException
- Throws:
IOException
getAnalyzer
public Analyzer getAnalyzer()
setAnalyzer
public void setAnalyzer(Analyzer analyzer)
isInit
public boolean isInit()
setInit
public void setInit(boolean init)
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.