Hi, Thanks, I should've consulted this guide more thoroughly. I actually had encountered this section when reading the guide, but somehow forgot about it when asking this question. I think, it doesn't clarify some things very well, which could leave a beginner a bit confused.
Specifically, that 'managed-schema' could indeed be modified by hand, or even that what the HTTP API is doing is actually modifying this file. When I was first checking out Solr, I saw this section and remembered thinking how verbose it was to make changes this way, because I saw on some website how someone was making changes to a 'schema.xml' file instead, and that seemed easier. This file was supposed to be in 'conf' but I couldn't find it... so I tried making the changes to modified-schema instead and it worked. But then I also read somewhere that you aren't supposed to do that, so I wasn't sure how to do things going forward. Anyways, I'm clearer now that the managed-schema does safely allow hand-edits if done properly, which might in some cases be easier than the HTTP calls; and at the same time it offers the HTTP API as an option as well when needed / preferred. Much thanks On Tue, Mar 7, 2017 at 9:50 PM, Alexandre Rafalovitch <arafa...@gmail.com> wrote: > Yes, it has been asked many times and has been answered both on the > list and in the - awesome - Reference Guide. I'd recommend reading > that and then coming back again with more specific question: > https://cwiki.apache.org/confluence/display/solr/Overview+of+Documents%2C+ > Fields%2C+and+Schema+Design > > One confusion to clarify though. API is HTTP API, Admin UI just uses > it and does not - yet - expose everything possible. You can always > just hit Solr directly for the missing bits. Again, RTARG (.. Awesome > Reference Guide) and then come back with specifics: > https://cwiki.apache.org/confluence/display/solr/Schema+API > > Regards, > Alex. > > ---- > http://www.solr-start.com/ - Resources for Solr users, new and experienced > > > On 7 March 2017 at 11:41, OTH <omer.t....@gmail.com> wrote: > > Hello > > > > I'm sure this has been asked many times but I'm having some confusion > here. > > > > I understand that managed-schema is not supposed to be edited by hand but > > only via the "API". All I understand about this "API" however, is that > it > > may be referring to the "Schema" page in the Solr browser-based Admin. > > > > However, in this "Schema" page, it provides options for "Add Field", "Add > > Dynamic Field", "Add Copy Field"; but when I was trying to add a > > "fieldType", I couldn't find any way to do this from this web page. > > > > So I instead edited the managed-schema page by hand, which I understand > can > > be problematic if the schema is ever edited it via the API later on? > > > > I am using v. 6.4.1; when I create a new core, it creates the > > managed-schema file in the 'conf' folder. Is there any way to use the > > older 'schema.xml' format instead? Because there seems to be more > > documentation available for that, and like I describe, the browser API > > seems to perhaps be lacking. > > > > If so - what do users usually prefer; schema.xml or managed-schema? (I'm > > aware this depends on individual preference, but would be nice to get > > others' feedback.) > > > > Thanks >