railo.runtime.search.lucene2
Class LuceneSearchCollection
java.lang.Object
railo.runtime.search.SearchCollectionSupport
railo.runtime.search.lucene2.LuceneSearchCollection
- All Implemented Interfaces:
- Serializable, SearchCollection, SearchCollectionPlus
public final class LuceneSearchCollection
- extends SearchCollectionSupport
- See Also:
- Serialized Form
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 |
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)
_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