How to create solr cores with separate schemas

Viewed 24

In my local environment, I am trying to create 2 different solr cores (product and popularity) with separate schemas. Loading the schema for the first core (product) works fine. However, when I try to load the schema for the second core (popularity), it ends up giving me the schema for both cores combined e.g.

  • Product Schema defined by me: sku, rating, price

  • Product Schema loaded into solr: sku, rating, price

  • Popularity Schema define by me: popularity_a, popularity_b

  • Popularity schema loaded into solr: sku, rating, price, popularity_a, popularity_b

API Requests:

  1. http://solr:8983/solr/admin/cores?action=CREATE&name=product&instanceDir=product&configSet=managed-base&schema=schema.xml
  2. http://solr:8983/solr/admin/cores?action=CREATE&name=popualrity&instanceDir=product_&configSet=managed-base&schema=schema.xml
  3. http://solr:8983/solr/product/schema (POST request with product.json schema)
  4. http://solr:8983/solr/popularity/schema (POST request with popularity.json schema)
0 Answers
Related