Skip to content

Commit

Permalink
fixed search
Browse files Browse the repository at this point in the history
  • Loading branch information
leftmove committed Aug 15, 2024
1 parent 1470e1e commit 4e340d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"name": "FastAPI: Module",
"type": "debugpy",
"module": "main",
"args": ["development"],
"justMyCode": false,
"request": "launch",
"cwd": "${workspaceFolder}/backend"
Expand Down
2 changes: 1 addition & 1 deletion backend/install.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sudo docker compose -f docker-compose.yaml up --build --force-recreate -d
sudo systemctl restart uvicorn
2 changes: 1 addition & 1 deletion backend/routers/lib/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def add_companies(companies: list, primary_key="cik"):


async def search_companies(query, limit, filter):
result = await companies_index.search(query, limit=limit, filter=filter)
result = companies_index.search(query, limit=limit, filter=filter)
hits = result.hits

return hits
12 changes: 6 additions & 6 deletions backend/static/statistics.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"latest": {
"count": 0,
"total": 0,
"average": 0
"count": 23,
"total": 24267.306618213654,
"average": 1055.1002877484198
},
"historical": {
"count": 0,
"total": 0,
"average": 0
"count": 20,
"total": 135744.65614962578,
"average": 6787.232807481289
}
}

0 comments on commit 4e340d6

Please sign in to comment.