You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ramkumar R. Aiyengar" <an...@gmail.com> on 2015/03/17 15:09:15 UTC

Why does QueryParserBase locale default to system locale?

Happened to notice that the 'default locale' used by QueryParserBase
is `Locale.getDefault()`, on which we call things like `toLowerCase`
etc. Given that we forbid functions like `toLowerCase` with no args,
does anyone know why we don't use the root locale as the default as
opposed to the system locale?

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


Re: Why does QueryParserBase locale default to system locale?

Posted by Yonik Seeley <ys...@gmail.com>.
That's weird.  Maybe some assumption about people creating their own
Lucene app wanting to be localized by default?  It is configurable.

Anyway, Solr doesn't use this... see SolrQueryParserBase

-Yonik


On Tue, Mar 17, 2015 at 10:09 AM, Ramkumar R. Aiyengar
<an...@gmail.com> wrote:
> Happened to notice that the 'default locale' used by QueryParserBase
> is `Locale.getDefault()`, on which we call things like `toLowerCase`
> etc. Given that we forbid functions like `toLowerCase` with no args,
> does anyone know why we don't use the root locale as the default as
> opposed to the system locale?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

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