Re: Managed schema vs schema.xml

2017-03-07 Thread Erick Erickson
I suggest we make additional comments on SOLR-10241. I created it as a result of this discussion and anyone who takes it on would benefit from the comments being made there. Anyone can make comments there, there's no special karma required although you do have to create a login. From the interest

Re: Managed schema vs schema.xml

2017-03-07 Thread Alexandre Rafalovitch
Actually, the main cross-references are from the solrconfig.xml, and primarily from the Update Request Handler chain that creates the "schemaless" effect. Then, I think you also have highlighters, etc. I did that full analysis as a presentation at the last Solr Revolution: https://www.slideshare.

Re: Managed schema vs schema.xml

2017-03-07 Thread Shawn Heisey
On 3/7/2017 1:32 PM, Phil Scadden wrote: I would have to say the "basic-config" seems distinctly more than basic. It is still a huge file. I thought perhaps I could delete every unused field type, but worried there were some "system" dependencies. This is definitely true. Solr example configs

Re: Managed schema vs schema.xml

2017-03-07 Thread Walter Underwood
Maybe this is expert stuff, but we keep our schema, solrconfig, and everything else checked into source control. I wrote a Python thingy to hit the cluster through the load balancer, get the zkHost string from status, upload the files to zookeeper (kazoo is a nice library), link the config, the

Re: Managed schema vs schema.xml

2017-03-07 Thread OTH
In the reference guide, in the chapter named "The Well Configured Solr Instance", it says (I'm copying+pasting from the PDF version) : Switching from Managed Schema to Manually Edited schema.xml > If you have started Solr with managed schema enabled and you would like to > switch to manually editi

Re: Managed schema vs schema.xml

2017-03-07 Thread Erick Erickson
See SOLR-10241 I just opened for discussion. My first impulse (well actually second) is to _not_ encourage anyone to hand-edit managed schema, and especially not put that in the ref guide. But perhaps put the classic schema factory in a comment in basic_configs and direct people there (and maybe e

RE: Managed schema vs schema.xml

2017-03-07 Thread Phil Scadden
I would second that guide could be clearer on that. I read and reread several times trying to get my head around the schema.xml/managed-schema bit. I came away from first cursory reading with the idea that managed-schema was mostly for schema-less mode and only after some stuff ups and puzzling

Re: Managed schema vs schema.xml

2017-03-07 Thread Alexandre Rafalovitch
On 7 March 2017 at 15:02, OTH wrote: > Specifically, that 'managed-schema' could indeed be modified by hand, or > even that what the HTTP API is doing is actually modifying this file. Thank you for the specific feedback. That is something we should fold into the Guide as you are not the only one

Re: Managed schema vs schema.xml

2017-03-07 Thread OTH
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

Re: Managed schema vs schema.xml

2017-03-07 Thread Alexandre Rafalovitch
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

Re: Managed schema vs schema.xml

2017-03-07 Thread OTH
Hi, Thanks, that sufficiently answers the question. It's especially good to know now that hand-editing is fine, as long as it's separated from API calls with restarts in between. Thanks On Tue, Mar 7, 2017 at 9:57 PM, Shawn Heisey wrote: > On 3/7/2017 9:41 AM, OTH wrote: > > I understand that

Re: Managed schema vs schema.xml

2017-03-07 Thread Ivan Bianchi
Hi OTH, I personally prefer to use the classic *schema.xml* file as I feel its better for core creation with the desired fields than dealing with api calls. You can use it specifying the schemaFactory class as ClassicIndexSchemaFactory as follows: Best regards, Ivan 2017-03-07 17:41 GMT+01:00

Re: Managed schema vs schema.xml

2017-03-07 Thread Shawn Heisey
On 3/7/2017 9:41 AM, OTH wrote: > 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 pr