mirror of
https://github.com/Hopiu/xapian-haystack.git
synced 2026-03-16 22:20:31 +00:00
Hide the highlight not implemented warning when highlight is False
This commit is contained in:
parent
cb8c1fec90
commit
7cd5335df5
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ class SearchBackend(BaseSearchBackend):
|
|||
if sort_by is not None:
|
||||
warnings.warn("Sorting has not been implemented yet.", Warning, stacklevel=2)
|
||||
|
||||
if highlight is not None:
|
||||
if highlight is not False:
|
||||
warnings.warn("Highlight has not been implemented yet.", Warning, stacklevel=2)
|
||||
|
||||
database = xapian.Database(self.path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue