the trick is, you have to remove the data/ directory, not just the data/index subdirectory. and of course then restart Solr.
or delete *:*?commit=true, depending on what's the best fit for your ops. Erik On Feb 1, 2011, at 11:41 , Dennis Gearon wrote: > I tried removing the index directory once, and tomcat refused to sart up > because > it didn't have a segments file. > > > > > ----- Original Message ---- > From: Erick Erickson <erickerick...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Tue, February 1, 2011 5:04:51 AM > Subject: Re: chaning schema > > That sounds right. You can cheat and just remove <solr_home>/data/index > rather than delete *:* though (you should probably do that with the Solr > instance stopped).... > > Make sure to remove the directory "index" as well. > > Best > Erick > > On Tue, Feb 1, 2011 at 1:27 AM, Dennis Gearon <gear...@sbcglobal.net> wrote: > >> Anyone got a great little script for changing a schema? >> >> i.e., after changing: >> database, >> the view in the database for data import >> the data-config.xml file >> the schema.xml file >> >> I BELIEVE that I have to run: >> a delete command for the whole index *:* >> a full import and optimize >> >> This all sound right? >> >> 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. >> >> >