From 468a7d1cea1b19844ae18be4c926bdd5276d7bbd Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Fri, 26 Jul 2024 10:29:40 +0700 Subject: Revert " update code category_id_i sync to solr" This reverts commit 7d9ab0d2d9ce5dce5976d6d86e38593c7cf20cd5. --- indoteknik_custom/models/solr/apache_solr.py | 4 ++-- 1 file 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): -- cgit v1.2.3