summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-26 10:29:40 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-26 10:29:40 +0700
commit468a7d1cea1b19844ae18be4c926bdd5276d7bbd (patch)
treee99bc3d17e8a3fec1607645a00a501e6a60b0d51
parent7d9ab0d2d9ce5dce5976d6d86e38593c7cf20cd5 (diff)
Revert "<iman> update code category_id_i sync to solr"
This reverts commit 7d9ab0d2d9ce5dce5976d6d86e38593c7cf20cd5.
-rw-r--r--indoteknik_custom/models/solr/apache_solr.py4
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 9ba3b721..6560c9b5 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://localhost:8983/solr/'
+ url = 'http://192.168.23.5: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):