# \IndexSearchApi
All URIs are relative to */api*
[**clear_index**](IndexSearchApi.md#clear_index) | **DELETE** /srch/index/delete/{idx_name} | Restart container and delete the index to recreate it.
[**count_search_logs_index**](IndexSearchApi.md#count_search_logs_index) | **GET** /srch/index/search/count_service_logs | Search and count the log line hits on every provided host
[**search_jobs_index**](IndexSearchApi.md#search_jobs_index) | **GET** /srch/w/{workspace}/index/search/job | Search through jobs with a string query
[**search_logs_index**](IndexSearchApi.md#search_logs_index) | **GET** /srch/index/search/service_logs | Search through service logs with a string query
## clear_index
> String clear_index(idx_name)
Restart container and delete the index to recreate it.
### Parameters
**idx_name** | **String** | | [required] |
### Return type
**String**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: text/plain
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## count_search_logs_index
> models::CountSearchLogsIndex200Response count_search_logs_index(search_query, min_ts, max_ts)
Search and count the log line hits on every provided host
### Parameters
**search_query** | **String** | | [required] |
**min_ts** | Option<**String**> | | |
**max_ts** | Option<**String**> | | |
### Return type
[**models::CountSearchLogsIndex200Response**](countSearchLogsIndex_200_response.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## search_jobs_index
> models::SearchJobsIndex200Response search_jobs_index(workspace, search_query, pagination_offset)
Search through jobs with a string query
### Parameters
**workspace** | **String** | | [required] |
**search_query** | **String** | | [required] |
**pagination_offset** | Option<**i32**> | | |
### Return type
[**models::SearchJobsIndex200Response**](searchJobsIndex_200_response.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## search_logs_index
> models::SearchLogsIndex200Response search_logs_index(search_query, mode, hostname, worker_group, min_ts, max_ts)
Search through service logs with a string query
### Parameters
**search_query** | **String** | | [required] |
**mode** | **String** | | [required] |
**hostname** | **String** | | [required] |
**worker_group** | Option<**String**> | | |
**min_ts** | Option<**String**> | | |
**max_ts** | Option<**String**> | | |
### Return type
[**models::SearchLogsIndex200Response**](searchLogsIndex_200_response.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)