mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Blacking out search indexing.
This commit is contained in:
parent
cd4a7b8693
commit
9067a22627
2 changed files with 4 additions and 3 deletions
|
@ -39,9 +39,9 @@ class MUserSearch(mongo.Document):
|
|||
|
||||
def touch_search_date(self):
|
||||
# Blackout
|
||||
if not self.subscriptions_indexed and not self.subscriptions_indexing:
|
||||
self.schedule_index_subscriptions_for_search()
|
||||
self.subscriptions_indexing = True
|
||||
# if not self.subscriptions_indexed and not self.subscriptions_indexing:
|
||||
# self.schedule_index_subscriptions_for_search()
|
||||
# self.subscriptions_indexing = True
|
||||
|
||||
self.last_search_date = datetime.datetime.now()
|
||||
self.save()
|
||||
|
|
1
fabfile.py
vendored
1
fabfile.py
vendored
|
@ -1001,6 +1001,7 @@ def setup_elasticsearch():
|
|||
with cd(os.path.join(env.VENDOR_PATH, 'elasticsearch-%s' % ES_VERSION)):
|
||||
run('wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-%s.deb' % ES_VERSION)
|
||||
sudo('dpkg -i elasticsearch-%s.deb' % ES_VERSION)
|
||||
sudo('/usr/share/elasticsearch/bin/plugin -install mobz/elasticsearch-head' % ES_VERSION)
|
||||
|
||||
def setup_db_search():
|
||||
put('config/supervisor_celeryd_search_indexer.conf', '/etc/supervisor/conf.d/celeryd_search_indexer.conf', use_sudo=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue