|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.turbine.services.BaseInitable org.apache.turbine.services.BaseService org.apache.turbine.services.TurbineBaseService org.apache.jetspeed.services.search.lucene.LuceneSearchService
Lucene implementation of search service. This implemenation currently does not synchronize the add/update/removal. If this service is used in a multi-threaded manner, it would be advisable to synchronized the Search wrapper class to ensure thread safety.
Field Summary |
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
Fields inherited from interface org.apache.jetspeed.services.search.SearchService |
SERVICE_NAME |
Fields inherited from interface org.apache.turbine.services.Service |
SERVICE_NAME |
Constructor Summary | |
LuceneSearchService()
|
Method Summary | |
boolean |
add(java.util.Collection c)
Add collection of index entries |
boolean |
add(java.lang.Object o)
Add index entry |
java.lang.String[] |
getSearchSets()
|
void |
init()
This is the lateinitialization method called by the Turbine Service framework |
void |
init(javax.servlet.ServletConfig conf)
This is the early initialization method called by the Turbine Service framework |
boolean |
optimize()
Optimize search indexes (optional operation). |
boolean |
remove(java.util.Collection c)
Remove collection of index entries |
boolean |
remove(java.lang.Object o)
Remove index entry |
SearchResults |
search(java.lang.String searchString)
Search |
void |
shutdown()
This is the shutdown method called by the Turbine Service framework |
boolean |
update(java.util.Collection c)
Updates an index entry. |
boolean |
update(java.lang.Object o)
Update index entry |
Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init |
Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, setInitableBroker |
Constructor Detail |
public LuceneSearchService()
Method Detail |
public void init(javax.servlet.ServletConfig conf) throws org.apache.turbine.services.InitializationException
Service
framework
conf
- The ServletConfig
throws
- a InitializationException
if the service
fails to initialize
org.apache.turbine.services.InitializationException
public void init() throws org.apache.turbine.services.InitializationException
Service
framework
init
in interface org.apache.turbine.services.Initable
throws
- a InitializationException
if the service
fails to initialize
org.apache.turbine.services.InitializationException
public void shutdown()
Service
framework
shutdown
in interface org.apache.turbine.services.Initable
public SearchResults search(java.lang.String searchString)
search
in interface SearchService
searchString
- is the what is being searched for
public java.lang.String[] getSearchSets()
public boolean add(java.lang.Object o)
SearchService
add
in interface SearchService
o
-
SearchService.add(java.lang.Object)
public boolean add(java.util.Collection c)
SearchService
add
in interface SearchService
c
-
org.apache.jetspeed.services.search.SearchService#add(java.lang.Collection)
public boolean remove(java.lang.Object o)
SearchService
remove
in interface SearchService
o
-
SearchService.remove(java.lang.Object)
public boolean remove(java.util.Collection c)
SearchService
remove
in interface SearchService
c
-
org.apache.jetspeed.services.search.SearchService#remove(java.lang.Collection)
public boolean update(java.lang.Object o)
SearchService
update
in interface SearchService
o
-
SearchService.update(java.lang.Object)
public boolean update(java.util.Collection c)
update
in interface SearchService
c
-
org.apache.jetspeed.services.search.SearchService#update(java.lang.Collection)
public boolean optimize()
SearchService
optimize
in interface SearchService
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |