Sep 20, 2024
Retrieve logs
Retrieves the logs for a single Query Suggestions index.
Usage
Required ACL:
settings
Copy
1
2
3
4
5
6
7
8
9
10
11
from algoliasearch.query_suggestions.client import QuerySuggestionsClientSync
from json import loads
# In an asynchronous context, you can use QuerySuggestionsClient instead, which exposes the exact same methods.
client = QuerySuggestionsClientSync(
"ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY", "ALGOLIA_APPLICATION_REGION"
)
response = client.get_log_file(
index_name="ALGOLIA_INDEX_NAME",
)
Did you find this page helpful?