lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From okayndc <bodymo...@gmail.com>
Subject Re: Lucene index inside of a web app?
Date Mon, 28 Nov 2011 16:40:59 GMT
Hi,

Thanks for your response.  Yes, LUCENE_INDEX_DIRECTORY is a static string
which contains the file system path of the index (for example, c:\\index).
 Is this good practice?  If not,  what should the full path to an index
look like?

Thanks

On Mon, Nov 28, 2011 at 4:54 AM, Ian Lea <ian.lea@gmail.com> wrote:

> What is LUCENE_INDEX_DIRECTORY?  Some static string in your app?
>
> Lucene knows nothing about your app, JSP, or what app server you are
> using.  It requires a file system path and it is up to you to provide
> that.  I always use a full path since I prefer to store indexes
> outside the app and it avoids complications with what the app server
> considers the default directory. But if you want to store it inside,
> without specifying full path, look at the docs for your app server.
>
>
> --
> Ian.
>
>
> On Sun, Nov 27, 2011 at 2:10 AM, okayndc <bodymoves@gmail.com> wrote:
> > Hello,
> >
> > I want to store the generated Lucene index inside of my Java application,
> > preferably within a folder where my JSP files are located.  I also want
> to
> > be able to search from the index within the web app. I've been using the
> > LUCENE_INDEX_DIRECTORY but, this is on a file system (currently my hard
> > drive).  Should I continue to use LUCENE_INDEX_DIRECTORY if I want the
> > Lucene index inside the app or use something else.  I was a bit confused
> > about this.  Btw, the Lucene index content comes from a database.
> >
> > Any help is appreciated
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message