solariumphp / solarium

PHP Solr client library
Other
933 stars 302 forks source link

Generate and upload schema.xml etc. #604

Closed Firesphere closed 2 years ago

Firesphere commented 6 years ago

I am probably looking in the wrong place, but I'd like to use PHP to generate and upload a schema.xml with the solrconfig.xml, stopwords, elevation.xml, synonyms.txt etc. files and activate them in Solr.

Does Solarium support this?

mkalkbrenner commented 6 years ago

We do something similar in Drupal's search_api_solr module using solarium. Solarium itself doesn't support the feature out of the box but provides the required basic communication stuff. But maybe it makes sense to isolate the API for this feature from search_api_solr and to integrate it here.

Firesphere commented 5 years ago

Apologies, very late reply as I haven't had time to look in to this closer, but do you have this documented/demoed somewhere @mkalkbrenner ?

I'm not a Drupal user, so I don't know exactly where to look :)

mkalkbrenner commented 5 years ago

It's not easy to extract as the generation heavily uses Drupal technology. https://www.drupal.org/project/search_api_solr

mkalkbrenner commented 3 years ago

At least the upload should be implemented in Solarium for Solr Cloud using ZooKeeper and the Collections API.

mkalkbrenner commented 3 years ago

If we don't upload entire config sets but single files we could use https://issues.apache.org/jira/browse/SOLR-14907

mkalkbrenner commented 3 years ago

Will be solved by #948

thomascorthals commented 2 years ago

Will be solved by #948

@mkalkbrenner Does this mean this issue can be closed?

mkalkbrenner commented 2 years ago

Yes, the upload is in place now. "Generating" a schema is out of scope for solarium and must be done by the application that uses solarium.