Skip to content

Commit

Permalink
Add simple cards endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Apr 18, 2024
1 parent 5c3cbda commit ce5a233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,15 @@ def simple_cards():
filters = json.dumps([filters])

es_client = current_app.config['ES_CLIENT']
return blueprint.controllers.search(
return dict(results=blueprint.controllers.search(
es_client, ['cards'], q,
size=30,
offset=0,
filters=filters,
score_threshold=0,
match_type='cross_fields',
match_operator='or',
).get('search_results', [])
).get('search_results', []))


@app.after_request
Expand Down

0 comments on commit ce5a233

Please sign in to comment.