solarium
solarium copied to clipboard
Implement schema API
Since 4.2 Solr has a schema API: https://wiki.apache.org/solr/SchemaRESTAPI
Solarium should support this.
Since Solr 5.0 the Schema API is more complete: https://cwiki.apache.org/confluence/display/solr/Schema+API
Is there something new on the admin APIs of Solr ?
Is this still being considered for development? This would be a very useful feature especially when dealing with schemaless indexing.
We support the V1 CoreAdminAPI and the V1 CollectionsAPI partly. Other V1 APIs are not implemented. But we added a generic implementation of the V2 API. Using it, you can do the V2 stuff mentioned in the docs: https://lucene.apache.org/solr/guide/7_7/schema-api.html
See https://github.com/solariumphp/solarium/blob/bdb78b9260df9922161cfe8b4cf7df9243b50ccb/tests/Integration/AbstractTechproductsTest.php#L509 for an example
Hello 👋
I'm very new to Solr and I created a new collection. Via Solarium client, but how can I define the schema. In #839 it was mention there is already a way to define a schema via solarium, but I could not find anything in the docs? Maybe somebody can push me into the right direction :)
@alexander-schranz I'm going to answer in #1049 because I think this is not quite what you're looking for.
You can use a generic API query to update a schema through the Schema API.
https://github.com/solariumphp/solarium/blob/3e0eb01c8ef02554b5cc5755019704cce6b12d02/examples/execute_all.php#L101-L115