|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.components.search.LuceneCocoonHelper
public class LuceneCocoonHelper
This class encapsulates some helper methods.
| Constructor Summary | |
|---|---|
LuceneCocoonHelper()
|
|
| Method Summary | |
|---|---|
static org.apache.lucene.analysis.Analyzer |
getAnalyzer(String analyzer_class_name)
Gets the analyzer attribute of the LuceneCocoonHelper class |
static org.apache.lucene.store.Directory |
getDirectory(File directory,
boolean create)
Gets the directory attribute of the LuceneCocoonHelper class |
static org.apache.lucene.index.IndexReader |
getIndexReader(org.apache.lucene.store.Directory directory)
Gets the indexReader attribute of the LuceneCocoonHelper class |
static org.apache.lucene.index.IndexWriter |
getIndexWriter(org.apache.lucene.store.Directory index,
org.apache.lucene.analysis.Analyzer analyzer,
boolean create)
Gets the indexWriter attribute of the LuceneCocoonHelper class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneCocoonHelper()
| Method Detail |
|---|
public static org.apache.lucene.store.Directory getDirectory(File directory,
boolean create)
throws IOException
directory - Description of Parametercreate - Description of Parameter
IOException - Description of Exceptionpublic static org.apache.lucene.analysis.Analyzer getAnalyzer(String analyzer_class_name)
analyzer_class_name - Description of Parameter
public static org.apache.lucene.index.IndexReader getIndexReader(org.apache.lucene.store.Directory directory)
throws IOException
directory - Description of Parameter
IOException - Description of Exception
public static org.apache.lucene.index.IndexWriter getIndexWriter(org.apache.lucene.store.Directory index,
org.apache.lucene.analysis.Analyzer analyzer,
boolean create)
throws IOException
index - Description of Parameteranalyzer - Description of Parametercreate - Description of Parameter
IOException - Description of Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||