I guess you are having issues with the datadir. Did you set the datadir in solrconfig.xml?
On Sat, May 14, 2011 at 4:10 PM, Pawan Darira <pawan.dar...@gmail.com>wrote: > Hi > > I am using Solr 1.4. & had changed schema already. When i created the index > for first time, the directory was automatically created & index made > perfectly fine. > > Now, i want to create the index from scratch, so I deleted the whole > data/index directory & ran the script. Now it is only creating empty > directories & NO index files inside that. > > Thanks > Pawan > > > On Sat, May 14, 2011 at 6:54 PM, Dmitry Kan <dmitry....@gmail.com> wrote: > > > Hi Pawan, > > > > Which SOLR version do you have installed? > > > > It should be absolutely normal for the data/ sub directory to create when > > starting up SOLR. > > > > So just go ahead and post your data into SOLR, if you have changed the > > schema already. > > > > -- > > Regards, > > > > Dmitry Kan > > > > On Sat, May 14, 2011 at 4:01 PM, Pawan Darira <pawan.dar...@gmail.com > > >wrote: > > > > > I did that. Index directory is created but not contents in that > > > > > > 2011/5/14 François Schiettecatte <fschietteca...@gmail.com> > > > > > > > You can also shut down solr/lucene, do: > > > > > > > > rm -rf /YourIndexName/data/index > > > > > > > > and restart, the index directory will be automatically recreated. > > > > > > > > François > > > > > > > > On May 14, 2011, at 1:53 AM, Gabriele Kahlout wrote: > > > > > > > > > "curl --fail $solrIndex/update?commit=true -d > > > > > '<delete><query>*:*</query></delete>'" #empty index [1 > > > > > < > > > > > > http://wiki.apache.org/nutch/Whole-Web%20Crawling%20incremental%20script > > > >] > > > > > > > > > > did u try? > > > > > > > > > > > > > > > On Sat, May 14, 2011 at 7:26 AM, Pawan Darira < > > pawan.dar...@gmail.com > > > > >wrote: > > > > > > > > > >> Hi > > > > >> > > > > >> I had an existing index created months back. now my database > schema > > > has > > > > >> changed. i wanted to delete the current data/index directory & > > > re-create > > > > >> the > > > > >> fresh index > > > > >> > > > > >> but it is saying that "segments" file not found & just create > blank > > > > >> data/index directory. Please help > > > > >> > > > > >> -- > > > > >> Thanks, > > > > >> Pawan Darira > > > > >> > > > > > > > > > > > > > > > > > > > > -- > > > > > Regards, > > > > > K. Gabriele > > > > > > > > > > --- unchanged since 20/9/10 --- > > > > > P.S. If the subject contains "[LON]" or the addressee acknowledges > > the > > > > > receipt within 48 hours then I don't resend the email. > > > > > subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) > ∧ > > > > time(x) > > > > > < Now + 48h) ⇒ ¬resend(I, this). > > > > > > > > > > If an email is sent by a sender that is not a trusted contact or > the > > > > email > > > > > does not contain a valid code then the email is not received. A > valid > > > > code > > > > > starts with a hyphen and ends with "X". > > > > > ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) > ∧ > > y > > > ∈ > > > > > L(-[a-z]+[0-9]X)). > > > > > > > > > > > > > > > > > -- > > > Thanks, > > > Pawan Darira > > > > > > > > > -- > Thanks, > Pawan Darira > -- Regards, K. Gabriele --- unchanged since 20/9/10 --- P.S. If the subject contains "[LON]" or the addressee acknowledges the receipt within 48 hours then I don't resend the email. subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x) < Now + 48h) ⇒ ¬resend(I, this). If an email is sent by a sender that is not a trusted contact or the email does not contain a valid code then the email is not received. A valid code starts with a hyphen and ends with "X". ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈ L(-[a-z]+[0-9]X)).