public interface SearchProvider
| Modifier and Type | Method and Description |
|---|---|
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
|
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 systemUnsupportedOperationException - 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 systemCopyright © 2007–2019 Sakai Project. All rights reserved.