public class SearchController extends Object
| Constructor and Description |
|---|
SearchController() |
| Modifier and Type | Method and Description |
|---|---|
IndexBuildStatus |
getIndexStatus(IndexType type) |
void |
rebuildIndexes(String userId,
IndexType type)
Rebuilds the search indices.
|
SearchResults |
runSearch(String userId,
SearchQuery query)
Executes search using parameters specified in the query.
|
public SearchResults runSearch(String userId, SearchQuery query)
userId - unique user identifier making the request. This can be null if the request is via web of
registriesquery - wrapper around search querypublic void rebuildIndexes(String userId, IndexType type)
userId - unique identifier for user making requesttype - type of search index to rebuildPermissionException - if requesting user does not have administrative privilegesIllegalArgumentException - on unsupported index typepublic IndexBuildStatus getIndexStatus(IndexType type)
Copyright © 2017. All rights reserved.