search_direct
search_direct
Perform a search programmatically without going through the HTTP API. This is useful for embedding search in application code where you want the full preprocessing pipeline but do not need network overhead.
Parameters
query
The search query text.
index_name
Name of the index to search.
count
Maximum number of results to return.
distance
Minimum similarity threshold for results.
tags
Filter results by tags.
language
Language code for query processing, or None for auto-detection.
Returns
dict[str, Any] — A dictionary with:
results(list) — list of result dicts, each withcontent,score, andmetadataquery_analysis(dict) — information about query preprocessing