railo.runtime.search.lucene2
Class LuceneSearchCollection

java.lang.Object
  extended by railo.runtime.search.SearchCollectionSupport
      extended by railo.runtime.search.lucene2.LuceneSearchCollection
All Implemented Interfaces:
Serializable, SearchCollection, SearchCollectionPlus

public final class LuceneSearchCollection
extends SearchCollectionSupport

See Also:
Serialized Form

Nested Class Summary
 class LuceneSearchCollection.SpellDirFilter
           
 
Field Summary
 
Fields inherited from interface railo.runtime.search.SearchCollection
SEARCH_TYPE_EXPLICIT, SEARCH_TYPE_SIMPLE
 
Constructor Summary
LuceneSearchCollection(SearchEngineSupport searchEngine, String name, Resource path, String language, DateTime lastUpdate, DateTime created)
           
LuceneSearchCollection(SearchEngineSupport searchEngine, String name, Resource path, String language, DateTime lastUpdate, DateTime created, boolean spellcheck)
           
 
Method Summary
static org.apache.lucene.analysis.Analyzer _getAnalyzer(String language)
          Deprecated. see SearchUtil.getAnalyzer(String language);
 IndexResult _indexURL(String id, String title, URL url, String[] extensions, boolean recurse, String language, long timeout)
          updates a collection with a url
 SearchResulItem[] _search(SearchData data, String criteria, String language, short type, String categoryTree, String[] category)
          search the collection
 Object getCategoryInfo()
           
 int getDocumentCount()
           
 int getDocumentCount(String id)
           
 long getSize()
           
 
Methods inherited from class railo.runtime.search.SearchCollectionSupport
addIndex, create, created, delete, deleteCustom, deleteIndex, deleteIndexNotCustom, getCreated, getDirectory, getIndexesAsQuery, getLanguage, getLastUpdate, getLogger, getName, getPath, getSearchEngine, index, index, indexCustom, indexCustom, indexFile, indexPath, indexURL, indexURL, map, optimize, purge, repair, search
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneSearchCollection

public LuceneSearchCollection(SearchEngineSupport searchEngine,
                              String name,
                              Resource path,
                              String language,
                              DateTime lastUpdate,
                              DateTime created,
                              boolean spellcheck)
Parameters:
searchEngine -
name -
path -
language -
lastUpdate -
created -

LuceneSearchCollection

public LuceneSearchCollection(SearchEngineSupport searchEngine,
                              String name,
                              Resource path,
                              String language,
                              DateTime lastUpdate,
                              DateTime created)
Method Detail

_indexURL

public IndexResult _indexURL(String id,
                             String title,
                             URL url,
                             String[] extensions,
                             boolean recurse,
                             String language,
                             long timeout)
                      throws SearchException
Description copied from class: SearchCollectionSupport
updates a collection with a url

Throws:
SearchException

_search

public SearchResulItem[] _search(SearchData data,
                                 String criteria,
                                 String language,
                                 short type,
                                 String categoryTree,
                                 String[] category)
                          throws SearchException
Description copied from interface: SearchCollection
search the collection

type - SEARCH_TYPE_EXPLICIT or SEARCH_TYPE_SIMPLE
Returns:
Result as SearchRecord Array
Throws:
SearchException

_getAnalyzer

public static org.apache.lucene.analysis.Analyzer _getAnalyzer(String language)
                                                        throws SearchException
Deprecated. see SearchUtil.getAnalyzer(String language);

Parameters:
language -
Returns:
returns language matching Analyzer
Throws:
SearchException

getDocumentCount

public int getDocumentCount(String id)

getDocumentCount

public int getDocumentCount()
Returns:
the counts of the documents in the collection

getSize

public long getSize()
Returns:
the size of the collection in KB

getCategoryInfo

public Object getCategoryInfo()


Copyright © 2012 Railo