Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema api #753

Closed
wickedOne opened this issue Feb 14, 2020 · 3 comments
Closed

schema api #753

wickedOne opened this issue Feb 14, 2020 · 3 comments
Assignees

Comments

@wickedOne
Copy link
Collaborator

The file named "managed-schema" in the example configurations may include a note that recommends never hand-editing the file. Before the Schema API existed, such edits were the only way to make changes to the schema, and users may have a strong desire to continue making changes this way.

The reason that this is discouraged is because hand-edits of the schema may be lost if the Schema API described here is later used to make a change, unless the core or collection is reloaded or Solr is restarted before using the Schema API. If care is taken to always reload or restart after a manual edit, then there is no problem at all with doing those edits.

https://lucene.apache.org/solr/guide/8_4/schema-api.html

this should be a fairly easy implementation by defining a new query type while it offers great flexibility by offering schema modifications programmatically

@wickedOne wickedOne self-assigned this Feb 14, 2020
@wickedOne wickedOne mentioned this issue Feb 14, 2020
@mkalkbrenner
Copy link
Member

Since https://github.com/solariumphp/solarium/releases/tag/5.0.0 we basically support the V2 API.

Using https://github.com/solariumphp/solarium/blob/master/src/QueryType/Server/Api/Query.php you can already use the Schema API (and any other Solr API) kind of "manually".

We should carefully decide if we should really create "classes" as before or if we should provide an easy to use generic kind of query builder for V2.

@wickedOne
Copy link
Collaborator Author

hmmm, very good point indeed...

as said, i've been working on this one briefly last thursday so i think i'll move that code to my api's namespace and build it on top of the solarium v2 query and see what i run into / can come up with in terms of a query builder for easing the management of these modifications.

what do you think?

@wickedOne
Copy link
Collaborator Author

closed for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants