Solr Ranking with Docker

Viewed 13

I'm using solr in docker and I want to use ranking as well. But everytime I start a docker container, I have to manually add the curl commands to load my model and my features into solr.

(Example commands from tutorial):

curl -XPUT 'http://localhost:8983/solr/techproducts/schema/feature-store' --data-binary "@/path/myFeatures.json" -H 'Content-type:application/json'

curl -XPUT 'http://localhost:8983/solr/techproducts/schema/model-store' --data-binary "@/path/myModel.json" -H 'Content-type:application/json'

My question is, if it is possible to avoid these manually commands and add my model and features file at the instantiation time of solr.

My goal: Start Solr and have ranking already activated with my given model and feature without manaually adding these curl commands. Is this possible?

Thanks in advance

Grunsch

0 Answers
Related