Re: Solr changes date format?

2008-08-14 Thread JuaNiK .
 : If a European locale was used when the seconds portion of the date
 : was formatted, it would use a comma for the radix point.

 But nothing in DateField relies on the default locale -- we don't even use
 DateFormatter's for milliseconds anymore because of the trailing zero
 problem   uh ... hmmm, okay wait a minute, maybe the problem is
 the *DecimalFormat* ... it looks like it probably pays attention to
 the default Locale.  crap.

 JuaNiK: do you know what the default Locale of your jvm is?  Can you try
 running the Solr unit tests (specificly DateFieldTest) and (assuming it
 fails) file a bug with the results?

Hoss, the default Locale  of my jvm is:

user.country : ES
user.language : es

i just ran DateFieldTest and it fails as Stefan Oestreicher said in a recent
message. I was applying exactly the same solution than him but over
DateField.java







 -Hoss




Solr changes date format?

2008-08-12 Thread JuaNiK .
Hello,

i've integrated succesfully Solr with the Fedora repository, and my searches
from Solr web admin
interface work fine, but i have problems when i try to access from another
web front-end.

This is the error i get:

java.text.ParseException: Unparseable date: 2008-08-06T22:25:36,388Z
at java.text.DateFormat.parse(DateFormat.java:335)
at
org.apache.solr.client.solrj.util.ClientUtils.parseDate(ClientUtils.java:145)
...

Date properties are correctly saved at the repository, and milliseconds are
separated
by a point but, as you can see, the separator is converted to a comma when
is accesed
from Solr (i can see this too from Solr web admin)

i've checked my schema.xml and solrconfig.xml files and i can't find the
reason why Solr
is changing the original date format.

thanks in advance,
Juan Fuertes


Re: Solr changes date format?

2008-08-12 Thread JuaNiK .
Hi,

Hoss,
i was sure about the problem being at the comma change over the data,
and the trace
was obvious about that, and i think what Wunder have said it is 100%
the point i've looking for.

i should have said on my post that i'm mixing java apps and
internacionalization stuff it is an
important part of the front end.
trying to fix it now, knowing that is a locale problem (stupid me)

i'm using 1.3 and the XML response to searches from the web admin (as
i tried to 'silently' say),
of course, still shows the comma for the msecs.

thanks both for the quick response,

juan


On Tue, Aug 12, 2008 at 8:48 PM, Walter Underwood
[EMAIL PROTECTED] wrote:

 On 8/12/08 11:42 AM, Chris Hostetter [EMAIL PROTECTED] wrote:

  : by a point but, as you can see, the separator is converted to a comma when
  : is accesed
  : from Solr (i can see this too from Solr web admin)
 
  this boggles my mind ... i can't think of *anything* in Solr that would do
  this ..

 If a European locale was used when the seconds portion of the date
 was formatted, it would use a comma for the radix point.

 wunder