Skip to content

Commit

Permalink
Tidied SQL query formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmeeson committed Mar 30, 2024
1 parent 81f2f20 commit 1f84ba9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sqlite_haystack/document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ def _create_bm25_index(db: sqlite3.Connection):
# """)
db.execute(
"""
CREATE VIRTUAL TABLE IF NOT EXISTS document_fts
USING fts5("id", "content", tokenize = 'trigram', content='document', content_rowid='rowid');
"""
CREATE VIRTUAL TABLE IF NOT EXISTS document_fts
USING fts5("id", "content", tokenize = 'trigram', content='document', content_rowid='rowid');
"""
)

# Creates triggers that update the index when the documents are added/removed/updated
Expand Down

0 comments on commit 1f84ba9

Please sign in to comment.