Class TurToolsService
java.lang.Object
com.viglet.turing.mcp.server.TurToolsService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionindexMappingTool(String index, String locale) listIndexTool(String index)
-
Constructor Details
-
TurToolsService
public TurToolsService()
-
-
Method Details
-
listIndexTool
-
indexMappingTool
-
searchIndexTool
@Tool(name="search_index_tool", description="Executes a search query against the Turing Elasticsearch (ES) instance.\n\nArgs:\n index (str): Name of the index to query. Required. Example: 'samplesite'.\n query (str, optional): Search query string. Example: 'foobar'. If date need be ISO-8601 format.\n page (int, optional): Page number for paginated results. Example: 1.\n fq (list[str], optional): List of filter queries using attribute:value format. If date need be ISO-8601 format. Example: ['title:foobar'].\n rows (int, optional): Number of results to return per page. Example: 10.\n locale (str): Locale or language code for the search. Required. Example: 'en-US' or 'pt-BR'.\nReturns:\n A dictionary containing the search results that match the provided parameters.\n") public TurSNDocumentList searchIndexTool(String index, String locale, String query, int page, List<String> fq, int rows)
-