lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KARTHIK SHIVAKUMAR <nskarthi...@gmail.com>
Subject Re: Lucene index inside of a web app?
Date Tue, 06 Dec 2011 05:59:53 GMT
Hi

Check  http://tomcat.apache.org

80% of the Web containers follow the same stattegy....


web.xml is well explained in this URL.

>>>>>cBy the way which WEB Container do u use ?

with regards
karthik

On Fri, Dec 2, 2011 at 7:54 PM, okayndc <bodymoves@gmail.com> wrote:

> What would the web.xml look like?  I'm lost.
>
> On Thu, Dec 1, 2011 at 11:04 PM, KARTHIK SHIVAKUMAR
> <nskarthik.k@gmail.com>wrote:
>
> > Hi
> >
> > >> generated Lucene index
> >
> > What if u need to upgrade this with More docs....
> >
> > Best approach is Inject the Real path of the Index ( c:/temp/Indexes )
>  to
> > the Web server Application via "web.xml"
> >
> > By this approach u can even achieve
> >
> > 1) Load balancing of multiple Web servers.... pointing to same Index
> files
> > 2) Update /Delete /Re-index with out the Web application being
> interrupted
> >
> >
> >
> > with regards
> > Karthik
> >
> > On Tue, Nov 29, 2011 at 12:25 AM, okayndc <bodymoves@gmail.com> wrote:
> >
> > > Awesome.  Thanks guys!
> > >
> > > On Mon, Nov 28, 2011 at 12:19 PM, Uwe Schindler <uwe@thetaphi.de>
> wrote:
> > >
> > > > You can store the index in WEB_INF directory, just use something:
> > > > ServletContext.getRealPath("/WEB-INF/data/myIndexName");
> > > >
> > > > -----
> > > > Uwe Schindler
> > > > H.-H.-Meier-Allee 63, D-28213 Bremen
> > > > http://www.thetaphi.de
> > > > eMail: uwe@thetaphi.de
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Ian Lea [mailto:ian.lea@gmail.com]
> > > > > Sent: Monday, November 28, 2011 6:11 PM
> > > > > To: java-user@lucene.apache.org
> > > > > Subject: Re: Lucene index inside of a web app?
> > > > >
> > > > > Using a static string is fine - it just wasn't clear from your
> > original
> > > > post what it
> > > > > was.
> > > > >
> > > > > I usually use a full path read from a properties file so that I can
> > > > change
> > > > it
> > > > > without a recompile, have different settings on test/live/whatever
> > > > systems, etc.
> > > > > Works for me, but isn't the only way to do it.
> > > > >
> > > > > If you know where your app lives, you could use a full path
> pointing
> > to
> > > > > somewhere within that tree, or you could use a partial path that
> the
> > > app
> > > > server
> > > > > will interpret relative to something.  Which is fine too - take
> your
> > > pick
> > > > of
> > > > > whatever works for you.
> > > > >
> > > > >
> > > > > --
> > > > > Ian.
> > > > >
> > > > >
> > > > > On Mon, Nov 28, 2011 at 4:40 PM, okayndc <bodymoves@gmail.com>
> > wrote:
> > > > > > 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
> > > > > >>
> > > > > >>
> > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > 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
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > *N.S.KARTHIK
> > R.M.S.COLONY
> > BEHIND BANK OF INDIA
> > R.M.V 2ND STAGE
> > BANGALORE
> > 560094*
> >
>



-- 
*N.S.KARTHIK
R.M.S.COLONY
BEHIND BANK OF INDIA
R.M.V 2ND STAGE
BANGALORE
560094*

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