org.apache.cocoon.components.search
Class LuceneCocoonHelper
java.lang.Object
|
+--org.apache.cocoon.components.search.LuceneCocoonHelper
- public class LuceneCocoonHelper
- extends java.lang.Object
This class encapsulates some helper methods.
- Version:
- CVS $Id: LuceneCocoonHelper.java,v 1.4 2002/02/22 07:00:12 cziegeler Exp $
- Author:
- Bernhard Huber
Method Summary |
static org.apache.lucene.analysis.Analyzer |
getAnalyzer(java.lang.String analyzer_class_name)
Gets the analyzer attribute of the LuceneCocoonHelper class |
static org.apache.lucene.store.Directory |
getDirectory(java.io.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 |
LuceneCocoonHelper
public LuceneCocoonHelper()
getDirectory
public static org.apache.lucene.store.Directory getDirectory(java.io.File directory,
boolean create)
throws java.io.IOException
- Gets the directory attribute of the LuceneCocoonHelper class
- Parameters:
directory
- Description of Parametercreate
- Description of Parameter- Returns:
- The directory value
- Throws:
java.io.IOException
- Description of Exception- Since:
-
getAnalyzer
public static org.apache.lucene.analysis.Analyzer getAnalyzer(java.lang.String analyzer_class_name)
- Gets the analyzer attribute of the LuceneCocoonHelper class
- Parameters:
analyzer_class_name
- Description of Parameter- Returns:
- The analyzer value
- Since:
-
getIndexReader
public static org.apache.lucene.index.IndexReader getIndexReader(org.apache.lucene.store.Directory directory)
throws java.io.IOException
- Gets the indexReader attribute of the LuceneCocoonHelper class
- Parameters:
directory
- Description of Parameter- Returns:
- The indexReader value
- Throws:
java.io.IOException
- Description of Exception- Since:
-
getIndexWriter
public static org.apache.lucene.index.IndexWriter getIndexWriter(org.apache.lucene.store.Directory index,
org.apache.lucene.analysis.Analyzer analyzer,
boolean create)
throws java.io.IOException
- Gets the indexWriter attribute of the LuceneCocoonHelper class
- Parameters:
index
- Description of Parameteranalyzer
- Description of Parametercreate
- Description of Parameter- Returns:
- The indexWriter value
- Throws:
java.io.IOException
- Description of Exception- Since:
-
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.