소스 검색

Merge pull request #15888 from ChillarAnand/whoosh

version-14
Mohammad Hasnain Mohsin Rajan 3 년 전
committed by GitHub
부모
커밋
29bfdc54c8
No known key found for this signature in database 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:


불러오는 중...
취소
저장