|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.index.lucene.LuceneIndexManager
public class LuceneIndexManager
An implementation of IndexManager for Lucene indexes.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private static String |
DIR_LUCENE
The lucene search index directory |
protected static Map |
INDEXES
The created indexes |
private static Logger |
log
The log stream |
Constructor Summary | |
---|---|
LuceneIndexManager()
|
Method Summary | |
---|---|
void |
deleteIndex(Book book)
Tidy up after yourself and remove all the files that make up any indexes you created. |
Index |
getIndex(Book book)
Create a new Searcher. |
protected URL |
getStorageArea(Book book)
Determine where an index should be stored |
void |
installDownloadedIndex(Book book,
URL tempDest)
We have downloaded a search index to a zip file. |
boolean |
isIndexed(Book book)
Detects if index data has been stored for this Bible already |
void |
scheduleIndexCreation(Book book)
Read from the given source version to generate ourselves. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Map INDEXES
private static final String DIR_LUCENE
private static final Logger log
Constructor Detail |
---|
public LuceneIndexManager()
Method Detail |
---|
public boolean isIndexed(Book book)
IndexManager
isIndexed
in interface IndexManager
public Index getIndex(Book book) throws BookException
IndexManager
getIndex
in interface IndexManager
BookException
public void scheduleIndexCreation(Book book)
IndexManager
scheduleIndexCreation
in interface IndexManager
public void installDownloadedIndex(Book book, URL tempDest) throws BookException
IndexManager
installDownloadedIndex
in interface IndexManager
book
- The book that we downloaded an index fortempDest
- The URL of a zip file to install
BookException
public void deleteIndex(Book book) throws BookException
IndexManager
deleteIndex
in interface IndexManager
BookException
protected URL getStorageArea(Book book) throws IOException
book
- The book to be indexed
IOException
- If there is a problem in finding where to store stuff
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |