diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-08 11:01:37 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-08 11:01:37 +0700 |
| commit | 12770546a41f846f721d32c296a598315c30b80b (patch) | |
| tree | 901d5131e823b6af21c2df477b17931befae9542 | |
| parent | 43f020d6f6ba271381e934c9e811f052de70a779 (diff) | |
change url apache solr
| -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) |
