Skip to content

Commit

Permalink
- Updating ElasticSearch dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Jul 25, 2018
1 parent f36c050 commit 64b2231
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions geonode/geoserver/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,11 @@ def command_url(command):
# need to be removed when fixing #2015
catalogue_post_save(instance, Layer)

# Updating HAYSTACK Indexes if needed
if settings.HAYSTACK_SEARCH:
from django.core.management import call_command
call_command('update_index')


def geoserver_pre_save_maplayer(instance, sender, **kwargs):
# If this object was saved via fixtures,
Expand Down
2 changes: 1 addition & 1 deletion geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@
},
}
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
# HAYSTACK_SEARCH_RESULTS_PER_PAGE = int(os.getenv('HAYSTACK_SEARCH_RESULTS_PER_PAGE', '200'))
HAYSTACK_SEARCH_RESULTS_PER_PAGE = int(os.getenv('HAYSTACK_SEARCH_RESULTS_PER_PAGE', '200'))

# Available download formats
DOWNLOAD_FORMATS_METADATA = [
Expand Down

0 comments on commit 64b2231

Please sign in to comment.