Wait- it does enforce the schema names. What it does not enforce is field contents when you change the schema. Since Lucene does not have field replacement, it is not practical to remove or add a field to all existing documents when you change the schema.
On Thu, Jan 13, 2011 at 8:15 PM, Lance Norskog <goks...@gmail.com> wrote: > Correct. Solr and Lucene do not store or enforce the schema. You're on > your own :) > > On Thu, Jan 13, 2011 at 8:09 PM, Dennis Gearon <gear...@sbcglobal.net> wrote: >> I'm going to buy the book for Solr, since it looks like I need to do more of >> the >> work than I thought I would. >> >> But, from looking at it, the schema file only says: >> >> A/ What types of data can be in the 'fields' of the documents >> B/ If there are any dynamically assigned fields. >> C/ What parsers are available >> D/ other stuff. >> >> And what it DOESN'T do is set the 'schema' for the index, right? >> (like DDL for a database does) >> >>  Dennis Gearon >> >> >> Signature Warning >> ---------------- >> It is always a good idea to learn from your own mistakes. It is usually a >> better >> idea to learn from others’ mistakes, so you do not have to make them >> yourself. >> from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036' >> >> >> EARTH has a Right To Life, >> otherwise we all die. >> >> > > > > -- > Lance Norskog > goks...@gmail.com > -- Lance Norskog goks...@gmail.com