data_retrieval
File: data_retrieval.py.
Description
This file is used to retrieve data from Elasticsearch.
search_data(index, q, size=None)
¶
Search data in Elasticsearch using the Scroll API if necessary.
Attributes:
Name | Type | Description |
---|---|---|
index |
str
|
The name of the Elasticsearch index to search. |
q |
str
|
The query string to search. |
size |
int
|
The number of results to return. |
Returns:
Name | Type | Description |
---|---|---|
response |
ObjectApiResponse[Any] | dict[str, Any]
|
The response from the Elasticsearch search. |