|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.jaxrs.JaxrsCollection
ccc.api.jaxrs.SearchImpl
public class SearchImpl
JAX-RS implementation of the SearchEngine
interface.
Field Summary |
---|
Fields inherited from interface ccc.api.core.SearchEngine |
---|
NAME |
Constructor Summary | |
---|---|
SearchImpl(SearchEngine search)
Constructor. |
Method Summary | |
---|---|
SearchResult |
find(java.lang.String searchTerms,
int noOfResultsPerPage,
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. |
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 ccc.api.jaxrs.JaxrsCollection |
---|
convertException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchImpl(SearchEngine search)
search
- The search implementation delegated too.Method Detail |
---|
public SearchResult find(java.lang.String searchTerms, int noOfResultsPerPage, int page)
find
in interface SearchEngine
searchTerms
- The terms to match.noOfResultsPerPage
- The number of results to return.page
- The page of results to return (first page has index of 0).
public void index()
index
in interface SearchEngine
public boolean isRunning()
isRunning
in interface Scheduler
public void start()
start
in interface Scheduler
public void stop()
stop
in interface Scheduler
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).
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).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |