Search Controller

The Search Controller is a singleton object available for use in the application. It is responsible for keeping track of which entities are referenced in which Search Services. In addition, it provides an API for synchronizing changes made to application data with the relevant Indices on the Generic Search Server. Note that from a Client-Server perspective, the Search Controller lives on the 'Client' (in this case, the Cúram Application Server), not the 'Server' (in this case, the Generic Search Server).

The SearchController API is composed of three methods which can be invoked if any entity involved in populating an Index is modified. The search developer must be aware of which application entity operations will result in such modifications and invoke the appropriate methods on the SearchController. The methods exposed in this API are:

void SearchController.insert(final Object objectDtls, 
  String entityName);
void SearchController.modify(final Object objectDtls, 
  String entityName)
void SearchController.remove(final Object objKey, final String entityName);

For more details see Add Synchronization to each Search Entity