aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fatcat_scholar/templates/search_macros.html2
-rw-r--r--settings.toml5
2 files changed, 4 insertions, 3 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index a114986..57a9011 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -151,7 +151,7 @@
{# TODO: remove doc for ES 7.x-style lack of type #}
{# TODO: only show 'json' link if from cluster? #}
{% if debug_mode %}
- <a target="_blank" rel="noopener" href="{{ settings.ELASTICSEARCH_BACKEND }}/{{ settings.ELASTICSEARCH_FULLTEXT_INDEX }}/_doc/{{ paper.key }}">
+ <a target="_blank" rel="noopener" href="{{ settings.ELASTICSEARCH_FRONTEND }}/{{ settings.ELASTICSEARCH_FULLTEXT_INDEX }}/_doc/{{ paper.key }}">
<span class="ui label small" title="search document JSON debug link">json</span>
</a>
{% endif %}
diff --git a/settings.toml b/settings.toml
index a16969b..50910cf 100644
--- a/settings.toml
+++ b/settings.toml
@@ -4,7 +4,8 @@ SCHOLAR_ENV = "default"
SCHOLAR_ISSUEDB_PATH = "data/issue_db.sqlite"
I18N_LANG_DEFAULT = "en"
FATCAT_ELASTICSEARCH_BACKEND = "https://search.fatcat.wiki"
-ELASTICSEARCH_BACKEND = "https://search.fatcat.wiki"
+ELASTICSEARCH_BACKEND = "http://search-svc097.fatcat.wiki:9292"
+ELASTICSEARCH_FRONTEND = "http://search-svc097.fatcat.wiki:9292"
ELASTICSEARCH_FULLTEXT_INDEX = "scholar_fulltext"
THUMBNAIL_URL_PREFIX = "https://blobs.fatcat.wiki/thumbnail/pdf/"
SANDCRAWLER_DB_API = "http://aitio.us.archive.org:3030"
@@ -22,13 +23,13 @@ FATCAT_API_HOST = "http://localhost:9411/v0"
SCHOLAR_ENV = "dev"
ELASTICSEARCH_FULLTEXT_INDEX = "dev_scholar_fulltext"
ELASTICSEARCH_BACKEND = "http://localhost:9200"
+ELASTICSEARCH_FRONTEND = "http://localhost:9200"
KAFKA_BROKERS = ["localhost"]
FATCAT_API_HOST = "http://localhost:9411/v0"
[qa]
SCHOLAR_ENV = "qa"
ELASTICSEARCH_FULLTEXT_INDEX = "scholar_fulltext_v01"
-ELASTICSEARCH_BACKEND = "http://search-svc097.fatcat.wiki:9292"
KAFKA_BROKERS = ["wbgrp-svc263.us.archive.org"]
[prod]