org.apache.jetspeed.search.lucene
Class SearchEngineImpl
java.lang.Object
org.apache.jetspeed.search.lucene.SearchEngineImpl
- All Implemented Interfaces:
- org.apache.jetspeed.search.SearchEngine
public class SearchEngineImpl
- extends Object
- implements org.apache.jetspeed.search.SearchEngine
- Author:
- Jeremy Ford
Constructor Summary |
SearchEngineImpl(String indexRoot,
String analyzerClassName,
boolean optimzeAfterUpdate,
org.apache.jetspeed.search.HandlerFactory handlerFactory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
rootIndexDir
private File rootIndexDir
analyzerClassName
private String analyzerClassName
optimizeAfterUpdate
private boolean optimizeAfterUpdate
handlerFactory
private org.apache.jetspeed.search.HandlerFactory handlerFactory
KEYWORD
private static final int KEYWORD
- See Also:
- Constant Field Values
TEXT
private static final int TEXT
- See Also:
- Constant Field Values
SearchEngineImpl
public SearchEngineImpl(String indexRoot,
String analyzerClassName,
boolean optimzeAfterUpdate,
org.apache.jetspeed.search.HandlerFactory handlerFactory)
throws Exception
- Throws:
Exception
add
public boolean add(Object o)
- Specified by:
add
in interface org.apache.jetspeed.search.SearchEngine
add
public boolean add(Collection objects)
- Specified by:
add
in interface org.apache.jetspeed.search.SearchEngine
remove
public boolean remove(Object o)
- Specified by:
remove
in interface org.apache.jetspeed.search.SearchEngine
remove
public boolean remove(Collection objects)
- Specified by:
remove
in interface org.apache.jetspeed.search.SearchEngine
update
public boolean update(Object o)
- Specified by:
update
in interface org.apache.jetspeed.search.SearchEngine
update
public boolean update(Collection objects)
- Specified by:
update
in interface org.apache.jetspeed.search.SearchEngine
optimize
public boolean optimize()
- Specified by:
optimize
in interface org.apache.jetspeed.search.SearchEngine
search
public org.apache.jetspeed.search.SearchResults search(String queryString)
- Specified by:
search
in interface org.apache.jetspeed.search.SearchEngine
newAnalyzer
private org.apache.lucene.analysis.Analyzer newAnalyzer()
addFieldsToDocument
private void addFieldsToDocument(org.apache.lucene.document.Document doc,
Map fields,
int type)
addFieldsToParsedObject
private void addFieldsToParsedObject(org.apache.lucene.document.Document doc,
org.apache.jetspeed.search.ParsedObject o)
addFieldsToMap
private void addFieldsToMap(org.apache.lucene.document.Document doc,
Set fieldNames,
Map fields)
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.