search.controllers package

Houses controllers for search.

Each controller corresponds to a distinct search feature with its own request handling logic. Each controller API exposes a search() function that accepts a set of request parameters (dict-like) and returns a 3-tuple of response data (dict), status code (int), and extra response headers (dict).

search.controllers.health_check()[source]

Exercise the connection with the search index with a real query.

Returns:
  • dict – Search result response data.
  • int – HTTP status code.
  • dict – Headers to add to the response.
Return type:Tuple[str, int, Dict[str, Any]]