mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Don't delete search stories without doc type on ES 1.7.
This commit is contained in:
parent
08bd3497b8
commit
5325ea57d1
1 changed files with 2 additions and 2 deletions
|
@ -301,8 +301,8 @@ class SearchStory:
|
|||
def remove(cls, story_hash):
|
||||
try:
|
||||
cls.ES().delete(index=cls.index_name(), id=story_hash, doc_type=cls.doc_type())
|
||||
except elasticsearch.exceptions.NotFoundError as e:
|
||||
cls.ES().delete(index=cls.index_name(), id=story_hash)
|
||||
# except elasticsearch.exceptions.NotFoundError as e:
|
||||
# cls.ES().delete(index=cls.index_name(), id=story_hash)
|
||||
except elasticsearch.exceptions.NotFoundError as e:
|
||||
logging.debug(f" ***> ~FRNo search server available for story deletion: {e}")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue