gt;> NB: I din't pay attention to change the names , so you might find the
>>>> word
>>>> "solr" here and there. I was using that earlier, but bcoz of lack of
>>>> facility of creating new separate indexes I moved to lucene today only.
ry parent directories.
If you want to automate the generation of the path itself, then there
are
several ways to do it, but the best way really depends on *why* you're
generating a new index. For instance, you could just create a
timestamped
name, but that name might not be very meaningful.
Ho
ber. Do
> let
> >> me
> >> know if i'm going wrong anywhere of if you feel it can be done in any
> >> other
> >> better way.
> >>
> >>
> >> Thanks,
> >> KK.
> >>
> >>
> >> On Wed, May 20, 2009 a
ld just open the indexwriter with the last (3rd)
>>> arguement as true, this way the indexwriter would create a new index as
>>> soon
>>> as you start indexing. Also, if you just leave the indexWriter without
>>> the
>>> 3rd arguement, it'd condit
y parent directories.
If you want to automate the generation of the path itself, then there are
several ways to do it, but the best way really depends on *why* you're
generating a new index. For instance, you could just create a timestamped
name, but that name might not be very meaningful.
Hope
t; }
> >
> > The 'mkdirs()' method creates any necessary parent directories.
> >
> > If you want to automate the generation of the path itself, then there are
> > several ways to do it, but the best way really depends on *why* you're
> > genera
automate the generation of the path itself, then there are
> several ways to do it, but the best way really depends on *why* you're
> generating a new index. For instance, you could just create a timestamped
> name, but that name might not be very meaningful.
>
> Hope that helps!
t helps!
-John
KK wrote:
How to create a new index? everytime I need to do so , I've to create a new
directory and put the path to that, right? how to automate the creation of
new directory?
I'm a new user of luce
How to create a new index? everytime I need to do so , I've to create a new
directory and put the path to that, right? how to automate the creation of
new directory?
I'm a new user of lucene. Please help me out.
Thanks,
KK.