Object | +--helma.Search
This class provides functionality for
creating a fulltext search index based on Apache Lucene.
Defined in Search.js
Author: Robert Gaggl
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |
| Constructor Summary | |
helma.Search()
Constructs a new instance of helma.Search. |
|
| Methods Summary | |
helma.Search.Index
|
createIndex(<org.apache.lucene.store.Directory> dir, <org.apache.lucene.analysis.Analyzer> analyzer)
Creates a new Lucene index in the directory passed as argument, using an optional analyzer, and returns an instance of helma.Search.Index. |
org.apache.lucene.store.FSDirectory
|
getDirectory(<File|helma.File|java.io.File|String> dir, <Boolean> create)
Returns an instance of org.apache.lucene.store.FSDirectory. |
org.apache.lucene.store.RAMDirectory
|
getRAMDirectory(<File|helma.File|java.io.File|String> dir)
Returns a RAM directory object. |
<static> {org.apache.lucene.analysis.Analyzer}
|
getAnalyzer(<String> key)
Returns a new Analyzer instance depending on the key passed as argument. |
| Constructor Detail |
helma.Search()
| Method Detail |
helma.Search.Index createIndex(<org.apache.lucene.store.Directory> dir, <org.apache.lucene.analysis.Analyzer> analyzer)
dir - The directory where the index should be stored. This can be either a FSDirectory or a RAMDirectory instance.
analyzer - The analyzer to use for the index. If not specified a StandardAnalyzer will be used.
org.apache.lucene.store.FSDirectory getDirectory(<File|helma.File|java.io.File|String> dir, <Boolean> create)
dir - The directory where the index is located or should be created at.
create - If true the index will be created, removing any existing index in the same directory
org.apache.lucene.store.RAMDirectory getRAMDirectory(<File|helma.File|java.io.File|String> dir)
dir - Optional directory containing a Lucene index from which this RAM directory should be created.
<static> {org.apache.lucene.analysis.Analyzer} getAnalyzer(<String> key)
key - The key identifying the analyzer
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |