85def search(query: str, params:
"RequestParams") -> EngineResults:
86 """Query (offline) engine and return results. Assemble the list of results
87 from your local engine.
89 In this demo engine we ignore the 'query' term, usual you would pass the
90 'query' term to your local engine to filter out the results.
94 count: int = CACHE.get(
"count", 0)
95 data_rows: list[dict[str, str]] = json.loads(_my_offline_engine)
101 'language': params[
'searxng_locale'],
102 'value': row.get(
"value"),
106 caption=f
"Demo Offline Engine Result #{count}",
112 res.add(res.types.LegacyResult(number_of_results=count))
115 CACHE.set(
"count", count, expire=20)