You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by Isaac Hebsh <is...@gmail.com> on 2013/05/24 13:14:32 UTC

CLue - lucene command line - questions

Hi, I have some questions about CLue. I cloud not find the original
message, so I'm sorry for opening a new thread.

1. It seems that IndexWriter is opened on every run of CLue. Probaby it
happens due to MERGE and DELETE commands. But there are many other
commands, which does not require any write operation. When tryng to use
CLue on an active index (eg. a running core of Solr), it fails because of
the write lock. I think it will be better to create an IndexWriter only
when it is really needed.

2. I've tried to use CLue on an index of LUCENE_43 codec. CLue failed. it
says that a need to set classpath to the the folder of the relevant JARs. I
did that, but it didnt solve the issue.


It looks like a very nice and usefull tool :)

Re: CLue - lucene command line - questions

Posted by John Wang <jo...@gmail.com>.
thanks Issac!

Looks like the 4.3 upgrade was done half-baked. Fix pushed.

Thanks

-John



On Sat, May 25, 2013 at 2:27 PM, Isaac Hebsh <is...@gmail.com> wrote:

> 1. great!
> 2. after running 'mvn package', look at target/lib directory: lucene JARs
> are 4.3.0, except lucene-core, which is 4.1.0. Do I miss something?
>
>
> On Fri, May 24, 2013 at 6:22 PM, John Wang <jo...@gmail.com> wrote:
>
> > Thanks Issac.
> >
> > 1. readonly support is a great idea. I did exactly what you suggested and
> > also added readonly toggle. Please pull latest from github and rebuild.
> >
> > 2. did you try to jar with all the dependencies bundled? Clue is built
> with
> > lucene 4.3.0, so the default codec should work. If there is not a default
> > codec, I think you need to some special classpath trick: e.g. edit
> clue.sh
> > in the bin directly and set the classpath accordingly.
> >
> > Thanks
> >
> > -John
> >
> >
> > On Fri, May 24, 2013 at 4:14 AM, Isaac Hebsh <is...@gmail.com>
> > wrote:
> >
> > > Hi, I have some questions about CLue. I cloud not find the original
> > > message, so I'm sorry for opening a new thread.
> > >
> > > 1. It seems that IndexWriter is opened on every run of CLue. Probaby it
> > > happens due to MERGE and DELETE commands. But there are many other
> > > commands, which does not require any write operation. When tryng to use
> > > CLue on an active index (eg. a running core of Solr), it fails because
> of
> > > the write lock. I think it will be better to create an IndexWriter only
> > > when it is really needed.
> > >
> > > 2. I've tried to use CLue on an index of LUCENE_43 codec. CLue failed.
> it
> > > says that a need to set classpath to the the folder of the relevant
> > JARs. I
> > > did that, but it didnt solve the issue.
> > >
> > >
> > > It looks like a very nice and usefull tool :)
> > >
> >
>

Re: CLue - lucene command line - questions

Posted by Isaac Hebsh <is...@gmail.com>.
1. great!
2. after running 'mvn package', look at target/lib directory: lucene JARs
are 4.3.0, except lucene-core, which is 4.1.0. Do I miss something?


On Fri, May 24, 2013 at 6:22 PM, John Wang <jo...@gmail.com> wrote:

> Thanks Issac.
>
> 1. readonly support is a great idea. I did exactly what you suggested and
> also added readonly toggle. Please pull latest from github and rebuild.
>
> 2. did you try to jar with all the dependencies bundled? Clue is built with
> lucene 4.3.0, so the default codec should work. If there is not a default
> codec, I think you need to some special classpath trick: e.g. edit clue.sh
> in the bin directly and set the classpath accordingly.
>
> Thanks
>
> -John
>
>
> On Fri, May 24, 2013 at 4:14 AM, Isaac Hebsh <is...@gmail.com>
> wrote:
>
> > Hi, I have some questions about CLue. I cloud not find the original
> > message, so I'm sorry for opening a new thread.
> >
> > 1. It seems that IndexWriter is opened on every run of CLue. Probaby it
> > happens due to MERGE and DELETE commands. But there are many other
> > commands, which does not require any write operation. When tryng to use
> > CLue on an active index (eg. a running core of Solr), it fails because of
> > the write lock. I think it will be better to create an IndexWriter only
> > when it is really needed.
> >
> > 2. I've tried to use CLue on an index of LUCENE_43 codec. CLue failed. it
> > says that a need to set classpath to the the folder of the relevant
> JARs. I
> > did that, but it didnt solve the issue.
> >
> >
> > It looks like a very nice and usefull tool :)
> >
>

Re: CLue - lucene command line - questions

Posted by John Wang <jo...@gmail.com>.
Thanks Issac.

1. readonly support is a great idea. I did exactly what you suggested and
also added readonly toggle. Please pull latest from github and rebuild.

2. did you try to jar with all the dependencies bundled? Clue is built with
lucene 4.3.0, so the default codec should work. If there is not a default
codec, I think you need to some special classpath trick: e.g. edit clue.sh
in the bin directly and set the classpath accordingly.

Thanks

-John


On Fri, May 24, 2013 at 4:14 AM, Isaac Hebsh <is...@gmail.com> wrote:

> Hi, I have some questions about CLue. I cloud not find the original
> message, so I'm sorry for opening a new thread.
>
> 1. It seems that IndexWriter is opened on every run of CLue. Probaby it
> happens due to MERGE and DELETE commands. But there are many other
> commands, which does not require any write operation. When tryng to use
> CLue on an active index (eg. a running core of Solr), it fails because of
> the write lock. I think it will be better to create an IndexWriter only
> when it is really needed.
>
> 2. I've tried to use CLue on an index of LUCENE_43 codec. CLue failed. it
> says that a need to set classpath to the the folder of the relevant JARs. I
> did that, but it didnt solve the issue.
>
>
> It looks like a very nice and usefull tool :)
>