Browse Source

Merge pull request #15888 from ChillarAnand/whoosh

version-14
Mohammad Hasnain Mohsin Rajan 3 years ago
committed by GitHub
parent
commit
29bfdc54c8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      frappe/search/full_text_search.py

+ 2
- 2
frappe/search/full_text_search.py View File

@@ -66,7 +66,7 @@ class FullTextSearch:

ix = self.get_index()
with ix.searcher():
writer = ix.writer()
writer = AsyncWriter(ix)
writer.delete_by_term(self.id, doc_name)
writer.commit(optimize=True)

@@ -98,7 +98,7 @@ class FullTextSearch:
def build_index(self):
"""Build index for all parsed documents"""
ix = self.create_index()
writer = ix.writer()
writer = AsyncWriter(ix)

for i, document in enumerate(self.documents):
if document:


Loading…
Cancel
Save