Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiog1901 committed Jan 24, 2024
1 parent cbe3b16 commit 53c4fdf
Show file tree
Hide file tree
Showing 5 changed files with 1,464 additions and 2,097 deletions.
21 changes: 2 additions & 19 deletions apiserver/routers/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,8 @@
)


@router.post("")
@router.post("/multi-search")
async def execute_search(
search_queries: Annotated[dict, Body()],
) -> dict | None:
# {"queries":
# [
# {"indexUid":"worst",
# "q":"fa",
# "facets":[],
# "attributesToHighlight":["*"],"highlightPreTag":"__ais-highlight__",
# "highlightPostTag":"__/ais-highlight__","limit":21,"offset":0}
# ]
# }

print(search_queries)
return {}
return svc.execute_search(search_queries)

# rwq {"requests":[{"indexName":"worst",
# "params":{"attributes-to-snippet":["text"],"facets":[],"query":"","tagFilters":""}}
# ]
# }
return svc.execute_search(search_queries['queries'])
Loading

0 comments on commit 53c4fdf

Please sign in to comment.