You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Erick Erickson <er...@gmail.com> on 2013/07/01 15:37:01 UTC

ignore option in core discovery mode?

What do people think about allowing an option in "core.properties" files
like ignoreMe=true|false (default to false)? I was thinking it might be
useful to temporarily have Solr ignore a core without having to physically
remove it.

I suppose you could really do the same thing by renaming the file to
something besides "core.properties" too.

Worth the bother?

Erick

Re: ignore option in core discovery mode?

Posted by Erick Erickson <er...@gmail.com>.
Right, that's the way I was leaning. I could argue that there's some
value in stopping the recursion, one would continue on past the
core.properties.bak file into the conf and data dirs, but I really don't
think
that's persuasive.

'...file to something besides "core.properties" too.'
should have read
'...file to something besides "core.properties" instead.'

So no code change it is.

Erick


On Mon, Jul 1, 2013 at 9:47 AM, Mark Miller <ma...@gmail.com> wrote:

>
> On Jul 1, 2013, at 9:37 AM, Erick Erickson <er...@gmail.com>
> wrote:
>
> > What do people think about allowing an option in "core.properties" files
> like ignoreMe=true|false (default to false)? I was thinking it might be
> useful to temporarily have Solr ignore a core without having to physically
> remove it.
>
> It's a good idea.
>
> >
> > I suppose you could really do the same thing by renaming the file to
> something besides "core.properties" too.
>
> But I think that negates the need for any additional code. Adding a .bak
> seem like a fine way to handle this and it adds no code.
>
> So I'd vote for no change, other than perhaps a doc note that mentions
> this use case or something.
>
> - Mark
>
> >
> > Worth the bother?
> >
> > Erick
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: ignore option in core discovery mode?

Posted by Mark Miller <ma...@gmail.com>.
On Jul 1, 2013, at 9:37 AM, Erick Erickson <er...@gmail.com> wrote:

> What do people think about allowing an option in "core.properties" files like ignoreMe=true|false (default to false)? I was thinking it might be useful to temporarily have Solr ignore a core without having to physically remove it.

It's a good idea.

> 
> I suppose you could really do the same thing by renaming the file to something besides "core.properties" too.

But I think that negates the need for any additional code. Adding a .bak seem like a fine way to handle this and it adds no code.

So I'd vote for no change, other than perhaps a doc note that mentions this use case or something.

- Mark

> 
> Worth the bother?
> 
> Erick


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