|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.search.lucene.LuceneSearchWorkspace
@Immutable public class LuceneSearchWorkspace
The SearchEngineWorkspace
implementation for the LuceneSearchEngine
.
Field Summary | |
---|---|
protected org.apache.lucene.analysis.Analyzer |
analyzer
|
protected static int |
CHANGES_BEFORE_OPTIMIZATION
Apparently Lucene indexes must always be optimized prior to committing, so this value is set to '1'. |
protected org.apache.lucene.store.Directory |
contentDirectory
|
protected static String |
FULL_TEXT_PREFIX
Given the name of a property field of the form "<namespace>:<local>" (where <namespace> can be zero-length), this provider also stores the value(s) for free-text searching in a field named ":ft:<namespace>:<local>". |
protected static String |
INDEX_NAME
|
protected IndexRules |
rules
|
Constructor Summary | |
---|---|
protected |
LuceneSearchWorkspace(String workspaceName,
LuceneConfiguration configuration,
IndexRules rules,
org.apache.lucene.analysis.Analyzer analyzer)
|
Method Summary | |
---|---|
void |
destroy(ExecutionContext context)
Destroy the indexes for the workspace with the supplied name. |
IndexRules |
getRules()
|
String |
getWorkspaceName()
Get the name of the workspace. |
protected boolean |
isOptimizationRequired(int changesInSession)
Give the number of changes that have been made in a session, determine whether optimization is required on the workspace indexes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int CHANGES_BEFORE_OPTIMIZATION
protected static final String INDEX_NAME
protected static final String FULL_TEXT_PREFIX
protected final IndexRules rules
protected final org.apache.lucene.store.Directory contentDirectory
protected final org.apache.lucene.analysis.Analyzer analyzer
Constructor Detail |
---|
protected LuceneSearchWorkspace(String workspaceName, LuceneConfiguration configuration, IndexRules rules, org.apache.lucene.analysis.Analyzer analyzer)
Method Detail |
---|
public String getWorkspaceName()
getWorkspaceName
in interface SearchEngineWorkspace
SearchEngineWorkspace.getWorkspaceName()
public void destroy(ExecutionContext context)
destroy
in interface SearchEngineWorkspace
context
- the execution context in which the destruction should be performed; may not be nullSearchEngineWorkspace.destroy(org.modeshape.graph.ExecutionContext)
public IndexRules getRules()
protected boolean isOptimizationRequired(int changesInSession)
changesInSession
- the number of changes made within a session using this workspace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |