|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchProvider
Defines the methods related to searching for entities (shared between interfaces), implementing this allows for support for the core EB search functionality
| Method Summary | |
|---|---|
boolean |
add(String reference,
SearchContent content)
Add some content to the search index for a given reference, this will replace existing content (not merge) |
boolean |
remove(String reference)
|
void |
resetSearchIndexes(String context)
WARNING: this should mostly never be run but it tells the search provider to purge the indexes and to request new search data for the given context |
SearchResults |
search(QuerySearch query)
Do a search for entities and get back the listing of results |
| Method Detail |
|---|
SearchResults search(QuerySearch query)
query - the search query object (allows paging etc.)
boolean add(String reference,
SearchContent content)
reference - a globally unique reference to an entity (e.g. /myprefix/myid),
consists of the entity prefix and optional segments (normally the id at least)content - [OPTIONAL] if null the content will be retrieved by called the Searchable
methods, otherwise this will simply index the content it is given into the search system
UnsupportedOperationException - if this reference cannot be searchedboolean remove(String reference)
reference - a globally unique reference to an entity (e.g. /myprefix/myid),
consists of the entity prefix and optional segments (normally the id at least)
void resetSearchIndexes(String context)
context - this generally represents either a site or a group in the system
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||