diff options
| -rw-r--r-- | indoteknik_custom/models/solr/apache_solr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/solr/apache_solr.py b/indoteknik_custom/models/solr/apache_solr.py index fd4928e7..518280ac 100644 --- a/indoteknik_custom/models/solr/apache_solr.py +++ b/indoteknik_custom/models/solr/apache_solr.py @@ -17,13 +17,13 @@ class ApacheSolr(models.Model): _order = 'id desc' def connect(self, schema): - env = config.get('solr_env', 'production') + env = config.get('solr_env', 'development') url = '' if env == 'development': url = 'http://192.168.23.5:8983/solr/' elif env == 'production': - url = 'http://34.101.189.218:8983/solr/' + url = 'http://10.148.0.5:8983/solr/' return pysolr.Solr(url + schema, always_commit=True, timeout=30) |
