|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.services.ejb3.SearchEngineEJB
@RolesAllowed(value={}) public class SearchEngineEJB
Lucene Implementation of the SearchEngine
interface.
Field Summary |
---|
Fields inherited from interface ccc.api.core.SearchEngine |
---|
NAME |
Constructor Summary | |
---|---|
SearchEngineEJB()
Constructor. |
|
SearchEngineEJB(ResourceRepository rdao)
Constructor. |
Method Summary | |
---|---|
SearchResult |
find(java.lang.String searchTerms,
int resultCount,
int page)
Find the entities that match the specified search terms. |
SearchResult |
find(java.lang.String searchTerms,
java.lang.String sort,
SortOrder order,
int resultCount,
int page)
Find the results that match the specified search terms. |
void |
index()
Rebuild the search index. |
boolean |
isRunning()
Query whether the scheduler is running. |
void |
run(javax.ejb.Timer timer)
Run the scheduled action. |
SearchResult |
similar(java.lang.String uuid,
int noOfResultsPerPage,
int page)
Find the results that are similar to the specified page. |
void |
start()
Start the scheduler running. |
void |
stop()
Stop the scheduler running. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchEngineEJB()
public SearchEngineEJB(ResourceRepository rdao)
rdao
- The ResourceDao.Method Detail |
---|
@PermitAll public SearchResult find(java.lang.String searchTerms, int resultCount, int page)
find
in interface SearchEngine
searchTerms
- The terms to match.resultCount
- The number of results to return.page
- The page of results to return (first page has index of 0).
@PermitAll public SearchResult find(java.lang.String searchTerms, java.lang.String sort, SortOrder order, int resultCount, int page)
find
in interface SearchEngine
searchTerms
- The terms to match.sort
- The field to sort on.order
- The order of the sort.resultCount
- The number of results to return.page
- The page of results to return (first page has index of 0).
@RolesAllowed(value="SEARCH_REINDEX") public void index()
index
in interface SearchEngine
public void run(javax.ejb.Timer timer)
timer
- The timer that called this method.@RolesAllowed(value="SEARCH_SCHEDULE") public void start()
start
in interface Scheduler
@RolesAllowed(value="SEARCH_SCHEDULE") public void stop()
stop
in interface Scheduler
@RolesAllowed(value="SEARCH_SCHEDULE") public boolean isRunning()
isRunning
in interface Scheduler
@PermitAll public SearchResult similar(java.lang.String uuid, int noOfResultsPerPage, int page)
similar
in interface SearchEngine
uuid
- The page to match.noOfResultsPerPage
- The number of results to return.page
- The page of results to return (first page has index of 0).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |