solarium icon indicating copy to clipboard operation
solarium copied to clipboard

Implement schema API

Open basdenooijer opened this issue 10 years ago • 7 comments

Since 4.2 Solr has a schema API: https://wiki.apache.org/solr/SchemaRESTAPI

Solarium should support this.

basdenooijer avatar Apr 17 '14 19:04 basdenooijer

Since Solr 5.0 the Schema API is more complete: https://cwiki.apache.org/confluence/display/solr/Schema+API

bpolaszek avatar Jun 11 '15 10:06 bpolaszek

Is there something new on the admin APIs of Solr ?

eostis avatar Jun 29 '17 14:06 eostis

Is this still being considered for development? This would be a very useful feature especially when dealing with schemaless indexing.

haydenyoung avatar Feb 04 '19 16:02 haydenyoung

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

mkalkbrenner avatar Apr 30 '19 15:04 mkalkbrenner

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 avatar Jan 20 '23 21:01 alexander-schranz

@alexander-schranz I'm going to answer in #1049 because I think this is not quite what you're looking for.

thomascorthals avatar Jan 20 '23 22:01 thomascorthals

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

thomascorthals avatar Jan 23 '23 15:01 thomascorthals