dcsimg
Getting Error while creating Indexing...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, June 10, 2004 03:39 AM

HI

I hava using

IndexWriter writer = new IndexWriter(indexname, new StandardAnalyzer(), true);

for creating indexing..

but am getting

java.lang.NullPointerException
at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:146)
at org.apache.lucene.store.FSDirectory. (FSDirectory.java:126)
at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:102)


can body help me...

thanks and Regards,
Mohan Rao.

Re: Getting Error while creating Indexing...

Posted By:   Otis_Gospodnetic  
Posted On:   Friday, June 11, 2004 03:06 AM

What is indexname? Make sure it is a directory that exists and is writable by the user running your application.
About | Sitemap | Contact