Lucene Index Directory
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   tracey_Hu
Posted On:   Monday, May 22, 2006 02:12 PM

I have finished the index and search coding, but I am stuck in the File Directory issue. During indexing, when I specify the directory ( which contains the index in this directory), I use File indexDir = new File("luceneIndex") ( I would like to this folder "luceneIndex" in the root folder of my web application) After running the indexing in my test window server, I found this folder in "C:/winnt/Sytem32" directory ; NOT in root folder of my web application, which is c:/StrutsProject/src ) ===================================== What is going on and how can specify the File path?    More>>

I have finished the index and search coding, but I am stuck in the File Directory issue.

During indexing, when I specify the directory ( which contains the index in this directory), I use

File indexDir = new File("luceneIndex")

( I would like to this folder "luceneIndex" in the root folder of my web application)

After running the indexing in my test window server, I found this folder in "C:/winnt/Sytem32" directory ;

NOT in root folder of my web application, which is c:/StrutsProject/src )
=====================================
What is going on and how can specify the File path?

   <<Less
About | Sitemap | Contact