Search Service Connector

The SearchServiceConnector is a utility class that allows searches to be performed. The 'search' operation on this class is the only supported way for search developers to invoke a search on a Generic Search Server Index.

Behind the scenes, this class handles the details of connecting from the running application to an instance of the Generic Search Server, wherever it may be deployed.

Searches may be performed with the SearchServiceConnector using the method:

static SearchServerResults search(CuramQuery query)
Note: If the search index does not contain any data it will throw an IndexEmptyException. Developers implementing searches should handle this exception gracefully.

User credentials are required to connect to the Generic Search Server. The connector picks up the details of the current user and uses those to communicate with the Generic Search Server.

Note: Do not attempt to use the DoSearch method (or any Generic Search Server method) directly - it will not work as it is running in the context of the Cúram application, and not the context of a running Generic Search Server application