diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-26 10:23:41 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-26 10:23:41 +0700 |
| commit | 7d9ab0d2d9ce5dce5976d6d86e38593c7cf20cd5 (patch) | |
| tree | 3a24ac6158b700fb5dbae23ecc19f96020948c40 | |
| parent | 855c29843be2b5ce9312b2ef9b18afe59e331644 (diff) | |
<iman> update code category_id_i sync to 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 6560c9b5..9ba3b721 100644 --- a/indoteknik_custom/models/solr/apache_solr.py +++ b/indoteknik_custom/models/solr/apache_solr.py @@ -22,10 +22,10 @@ class ApacheSolr(models.Model): url = '' if env == 'development': - url = 'http://192.168.23.5:8983/solr/' + url = 'http://localhost:8983/solr/' elif env == 'production': url = 'http://34.101.189.218:8983/solr/' - + return pysolr.Solr(url + schema, always_commit=False, timeout=10) def get_doc(self, schema, id): |
