Skip to main content
added 12 characters in body
Source Link

Does anyone have any experience adding computed fields to a managed schema? I'm using Solr in SolrCloud mode with 1 node. My Sitecore 10.2Sitecore 10.2 setup uses docker with a solr-init and solr image. I'm able to add a new field with the add-field command, but I don't see anything in the extended properties for a computed field. Here is the regular add-field command:

curl -X POST -H "Content-type:application/json" --data-binary "{\"add-field\":{\"name\":\"TEST\",\"type\":\"string\",\"required\":\"true\",\"stored\":true,\"indexed\":\"true\"}}" 

curl -X POST -H "Content-type:application/json" --data-binary "{"add-field":{"name":"TEST","type":"string","required":"true","stored":true,"indexed":"true"}}" http://localhost:8984/api/cores/sitecore_test_index_shard1_replica_n1/schemahttp://localhost:8984/api/cores/sitecore_test_index_shard1_replica_n1/schema

If it can't be done with the API is there another way? Or do I have to convert the managed schema back to classic schema.xml?

Thanks!

Does anyone have any experience adding computed fields to a managed schema? I'm using Solr in SolrCloud mode with 1 node. My Sitecore 10.2 setup uses docker with a solr-init and solr image. I'm able to add a new field with the add-field command, but I don't see anything in the extended properties for a computed field. Here is the regular add-field command:

curl -X POST -H "Content-type:application/json" --data-binary "{"add-field":{"name":"TEST","type":"string","required":"true","stored":true,"indexed":"true"}}" http://localhost:8984/api/cores/sitecore_test_index_shard1_replica_n1/schema

If it can't be done with the API is there another way? Or do I have to convert the managed schema back to classic schema.xml?

Thanks!

Does anyone have any experience adding computed fields to a managed schema? I'm using Solr in SolrCloud mode with 1 node. My Sitecore 10.2 setup uses docker with a solr-init and solr image. I'm able to add a new field with the add-field command, but I don't see anything in the extended properties for a computed field. Here is the regular add-field command:

curl -X POST -H "Content-type:application/json" --data-binary "{\"add-field\":{\"name\":\"TEST\",\"type\":\"string\",\"required\":\"true\",\"stored\":true,\"indexed\":\"true\"}}" 

http://localhost:8984/api/cores/sitecore_test_index_shard1_replica_n1/schema

If it can't be done with the API is there another way? Or do I have to convert the managed schema back to classic schema.xml?

Thanks!

Source Link

Adding a computed field using the Schema API with SolrCloud

Does anyone have any experience adding computed fields to a managed schema? I'm using Solr in SolrCloud mode with 1 node. My Sitecore 10.2 setup uses docker with a solr-init and solr image. I'm able to add a new field with the add-field command, but I don't see anything in the extended properties for a computed field. Here is the regular add-field command:

curl -X POST -H "Content-type:application/json" --data-binary "{"add-field":{"name":"TEST","type":"string","required":"true","stored":true,"indexed":"true"}}" http://localhost:8984/api/cores/sitecore_test_index_shard1_replica_n1/schema

If it can't be done with the API is there another way? Or do I have to convert the managed schema back to classic schema.xml?

Thanks!