org.apache.cocoon.components.search
Class LuceneCocoonHelper

java.lang.Object
  extended by org.apache.cocoon.components.search.LuceneCocoonHelper

public class LuceneCocoonHelper
extends Object

This class encapsulates some helper methods.

Version:
CVS $Id: LuceneCocoonHelper.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Bernhard Huber

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

LuceneCocoonHelper

public LuceneCocoonHelper()
Method Detail

getDirectory

public static org.apache.lucene.store.Directory getDirectory(File directory,
                                                             boolean create)
                                                      throws IOException
Gets the directory attribute of the LuceneCocoonHelper class

Parameters:
directory - Description of Parameter
create - Description of Parameter
Returns:
The directory value
Throws:
IOException - Description of Exception
Since:

getAnalyzer

public static org.apache.lucene.analysis.Analyzer getAnalyzer(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 IOException
Gets the indexReader attribute of the LuceneCocoonHelper class

Parameters:
directory - Description of Parameter
Returns:
The indexReader value
Throws:
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 IOException
Gets the indexWriter attribute of the LuceneCocoonHelper class

Parameters:
index - Description of Parameter
analyzer - Description of Parameter
create - Description of Parameter
Returns:
The indexWriter value
Throws:
IOException - Description of Exception
Since:


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.