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/01/25 23:01:46 UTC

Cleaning up writer after certain idle time?

Hi,

I am using multiple writer instances in a web service. Some instances are
busy all the time, while some aren't. I wonder how to configure the writer
to dissolve itself after a certain time of idling, say 30 seconds.

If the answer is yes, can I do more in the dissolving, such as writing the
changes to fs directory?

Thanks

Re: Cleaning up writer after certain idle time?

Posted by Cheng <zh...@gmail.com>.
Yes, I do have one indexwriter instance for each category.

By referring to "dissolving", I mean two things: first, to write all the
changes to a local directory for the writer; second, to disable the writer
instance.

On Wed, Jan 25, 2012 at 5:09 PM, Simon Willnauer <
simon.willnauer@googlemail.com> wrote:

> Hey,
>
>
> On Wed, Jan 25, 2012 at 11:01 PM, Cheng <zh...@gmail.com> wrote:
> > Hi,
> >
> > I am using multiple writer instances in a web service. Some instances are
> > busy all the time, while some aren't. I wonder how to configure the
> writer
> > to dissolve itself after a certain time of idling, say 30 seconds.
> what do you mean by multiple writers, more than one IndexWriter? I
> don't understand what "dissolve" means in this context?
> maybe you can elaborate more on your architecture please?
>
> simon
> >
> > If the answer is yes, can I do more in the dissolving, such as writing
> the
> > changes to fs directory?
> >
> > Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: Cleaning up writer after certain idle time?

Posted by Simon Willnauer <si...@googlemail.com>.
Hey,


On Wed, Jan 25, 2012 at 11:01 PM, Cheng <zh...@gmail.com> wrote:
> Hi,
>
> I am using multiple writer instances in a web service. Some instances are
> busy all the time, while some aren't. I wonder how to configure the writer
> to dissolve itself after a certain time of idling, say 30 seconds.
what do you mean by multiple writers, more than one IndexWriter? I
don't understand what "dissolve" means in this context?
maybe you can elaborate more on your architecture please?

simon
>
> If the answer is yes, can I do more in the dissolving, such as writing the
> changes to fs directory?
>
> Thanks

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