Skip to content

Commit 52d3bfc

Browse files
committed
update postgres searcher to search from lse_doc_scca
1 parent c3e0592 commit 52d3bfc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fastapi_app/postgres_searcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ async def search(
3535

3636
vector_query = f"""
3737
SELECT id, RANK () OVER (ORDER BY embedding <=> :embedding) AS rank
38-
FROM lse_doc
38+
FROM lse_doc_scca
3939
{filter_clause_where}
4040
ORDER BY embedding <=> :embedding
4141
LIMIT 20
4242
"""
4343

4444
fulltext_query = f"""
4545
SELECT id, RANK () OVER (ORDER BY ts_rank_cd(to_tsvector('english', content), query) DESC)
46-
FROM lse_doc, plainto_tsquery('english', :query) query
46+
FROM lse_doc_scca, plainto_tsquery('english', :query) query
4747
WHERE to_tsvector('english', content) @@ query {filter_clause_and}
4848
ORDER BY ts_rank_cd(to_tsvector('english', content), query) DESC
4949
LIMIT 20

0 commit comments

Comments
 (0)