|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.nava.informa.search.ChannelIndexer
public final class ChannelIndexer
Utility class which allows to generate respective maintain a fulltext index for news items.
| Constructor Summary | |
|---|---|
ChannelIndexer(String indexDir)
Constructor which allows to specify the index directory. |
|
| Method Summary | |
|---|---|
String |
getIndexDir()
|
int |
getNrOfIndexedItems()
Returns the number of documents that were in the index last time the index operation was performed. |
void |
indexChannels(boolean createNewIndex,
Collection channels)
Index all news items contained in the given channels. |
void |
indexItems(boolean createNewIndex,
Collection<ItemIF> items)
Index all given news items. |
void |
setIndexDir(String indexDir)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelIndexer(String indexDir)
StandardAnalyzer
is used.
indexDir - - The directory in which the index files are stored.| Method Detail |
|---|
public void indexChannels(boolean createNewIndex,
Collection channels)
throws IOException
createNewIndex - - wether a new index should be generated or
an existant one should be taken into accountchannels - - a collection of ChannelIF objects
IOException
public void indexItems(boolean createNewIndex,
Collection<ItemIF> items)
throws IOException
createNewIndex - - Wether a new index should be generated or
an existant one should be taken into account.items - - A collection of ItemIF objects.
IOExceptionpublic int getNrOfIndexedItems()
public void setIndexDir(String indexDir)
public String getIndexDir()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||