lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Powers <jpow...@configureone.com>
Subject Re: Lucene and Web Context
Date Tue, 22 Nov 2005 20:06:20 GMT
session.getServletContext().getRealPath("/")  + "data/lucene"




On 11/22/05 12:49 PM, "krg9263" <kgutch@protech.newsouth.net> wrote:

> 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
> 


---------------------------------------------------------------------
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