Skip to content

Commit

Permalink
move keyword index to init
Browse files Browse the repository at this point in the history
  • Loading branch information
jlonge4 committed Apr 22, 2024
1 parent 9418660 commit 9f583ea
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,11 @@ def _keyword_retrieval(
FROM {table_name}, plainto_tsquery({language}, {query}) query
WHERE to_tsvector({language}, content) @@ query {where_clause} LIMIT {top_k}"""
).format(
table_name=Identifier(self.table_name), language=self.language, query=SQLLiteral(user_query), top_k=top_k,
where_clause=sql_where_clause
table_name=Identifier(self.table_name),
language=self.language,
query=SQLLiteral(user_query),
top_k=top_k,
where_clause=sql_where_clause,
)

result = self._execute_sql(
Expand Down

0 comments on commit 9f583ea

Please sign in to comment.