lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "krg9263" <kgu...@protech.newsouth.net>
Subject Lucene and Web Context
Date Tue, 22 Nov 2005 18:49:55 GMT
I am very new to Lucene.
Does anyone have an example of a Lucene IndexWriter whose path is relative 
to a context path? All of the examples I have seen place it outside the web 
container and relative to the system path. I need something within  a web 
container because I do not have access outside of it. I tried:

IndexWriter indexWriter = new IndexWriter( m_request.getContextPath()+ 
"/data/LUCENE", new StandardAnalyzer(), true);


but this resulted in the app looking in: c:/CONTEXT_PATH/data/LUCENE

Any advice is greatly appreciated.





---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message