On 8/2/2016 5:16 AM, Naveen Pajjuri wrote: > Hi, Im trying to move from 4.10.4 to 6.1.0. I want to define and use > custom field types. but i read that its not advisable to modify > managed-schema file. how do i create custom field types ??
You have three choices. * Ignore the warning and edit managed-schema, then reload/restart as necessary. * Use the Schema API to change the schema with HTTP requests. * Switch to the classic schema, and use schema.xml instead of managed-schema. I personally would go with the first option. The only reason that the warning exists is that hand-edits of the file may be lost in certain circumstances when also using the Schema API. If you never use the Schema API, you never need to worry about that. Info about the Schema API: https://cwiki.apache.org/confluence/display/solr/Schema+API I think the warning in managed-schema should be changed to let people know that if they never use the Schema API, it is perfectly safe to edit the file. Thanks, Shawn