diff options
| -rw-r--r-- | indoteknik_custom/models/solr/apache_solr.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/models/solr/product_product.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/solr/apache_solr.py b/indoteknik_custom/models/solr/apache_solr.py index 518280ac..f05357bf 100644 --- a/indoteknik_custom/models/solr/apache_solr.py +++ b/indoteknik_custom/models/solr/apache_solr.py @@ -23,7 +23,7 @@ class ApacheSolr(models.Model): if env == 'development': url = 'http://192.168.23.5:8983/solr/' elif env == 'production': - url = 'http://10.148.0.5:8983/solr/' + url = 'http://34.101.189.218:8983/solr/' return pysolr.Solr(url + schema, always_commit=True, timeout=30) diff --git a/indoteknik_custom/models/solr/product_product.py b/indoteknik_custom/models/solr/product_product.py index 88ab8dd5..54b098e5 100644 --- a/indoteknik_custom/models/solr/product_product.py +++ b/indoteknik_custom/models/solr/product_product.py @@ -152,6 +152,7 @@ class ProductProduct(models.Model): 'stock': doc.get('stock_total_f'), 'weight': doc.get('weight_f'), 'manufacture': None, + 'attributes': [x.name for x in product.product_template_attribute_value_ids], 'is_flashsale': True if flashsale else False } |
