You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Cheng <zh...@gmail.com> on 2012/02/14 17:49:14 UTC

Can I use multiple writers of different applications on a same FSDirectory?

Hi,

I need to manage multiple applications, each having its own writer yet on a
same FSdirectory. How to make it happen while I encounter quite a few
exceptions?

thanks

Re: Can I use multiple writers of different applications on a same FSDirectory?

Posted by Cheng <zh...@gmail.com>.
thanks

On Wed, Feb 15, 2012 at 1:14 AM, Mihai Caraman <ca...@gmail.com>wrote:

> you can use a fsdirectory for each writer and then, search on all of them
> at once. This is the recomended way if you have different apps.
>
> În data de 14 februarie 2012, 19:06, Ian Lea <ia...@gmail.com> a scris:
>
> > You can only have one writer against one index at a time.  Lucene's
> > locking will prevent anything else.
> >
> >
> > --
> > Ian.
> >
> >
> > On Tue, Feb 14, 2012 at 4:49 PM, Cheng <zh...@gmail.com> wrote:
> > > Hi,
> > >
> > > I need to manage multiple applications, each having its own writer yet
> > on a
> > > same FSdirectory. How to make it happen while I encounter quite a few
> > > exceptions?
> > >
> > > thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> >
>

Re: Can I use multiple writers of different applications on a same FSDirectory?

Posted by Mihai Caraman <ca...@gmail.com>.
you can use a fsdirectory for each writer and then, search on all of them
at once. This is the recomended way if you have different apps.

În data de 14 februarie 2012, 19:06, Ian Lea <ia...@gmail.com> a scris:

> You can only have one writer against one index at a time.  Lucene's
> locking will prevent anything else.
>
>
> --
> Ian.
>
>
> On Tue, Feb 14, 2012 at 4:49 PM, Cheng <zh...@gmail.com> wrote:
> > Hi,
> >
> > I need to manage multiple applications, each having its own writer yet
> on a
> > same FSdirectory. How to make it happen while I encounter quite a few
> > exceptions?
> >
> > thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: Can I use multiple writers of different applications on a same FSDirectory?

Posted by Ian Lea <ia...@gmail.com>.
You can only have one writer against one index at a time.  Lucene's
locking will prevent anything else.


--
Ian.


On Tue, Feb 14, 2012 at 4:49 PM, Cheng <zh...@gmail.com> wrote:
> Hi,
>
> I need to manage multiple applications, each having its own writer yet on a
> same FSdirectory. How to make it happen while I encounter quite a few
> exceptions?
>
> thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org