瀏覽代碼

Merge pull request #15888 from ChillarAnand/whoosh

version-14
Mohammad Hasnain Mohsin Rajan 3 年之前
committed by GitHub
父節點
當前提交
29bfdc54c8
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      frappe/search/full_text_search.py

+ 2
- 2
frappe/search/full_text_search.py 查看文件

@@ -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…
取消
儲存