You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Claudio Devecchi <cd...@gmail.com> on 2010/08/03 17:16:24 UTC

Error indexing "date"

Hi everybody,

I'm having a error to index a xml file.

I have configured my schema xml with all field names I needed, and created a
xml with these fields, but in field wich I use some date I receive the
following error:
On my schema.xml the fields that I need date I configured it with *
type="date"*
On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*

Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
*SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
        at org.apache.solr.schema.DateField.parseMath(DateField.java:163)
        at
org.apache.solr.schema.TrieDateField.createField(TrieDateField.java:171)
        at
org.apache.solr.schema.SchemaField.createField(SchemaField.java:94)
        at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:246)
        at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
        at
org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:139)
        at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
        at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:619)

Somebody could help me?

Tks!!

-- 
Claudio Devecchi

Re: Error indexing "date"

Posted by Claudio Devecchi <cd...@gmail.com>.
Hi Michael,

My xml have it:
<field name="signupdate">2010-07-31T13:37:35.999Z</field>

And in my schema.xml I have it:
<field name="signupdate" type="date" indexed="true" stored="true"
required="true" />

Tks!

On Tue, Aug 3, 2010 at 12:19 PM, Michael Griffiths <mg...@am-ind.com>wrote:

> What's your XML data look like (for the data)?
>
> Looks like it's not the same date format Solr accepts.
>
> -----Original Message-----
> From: Claudio Devecchi [mailto:cdevecchi@gmail.com]
> Sent: Tuesday, August 03, 2010 11:16 AM
> To: solr-user@lucene.apache.org
> Subject: Error indexing "date"
>
> Hi everybody,
>
> I'm having a error to index a xml file.
>
> I have configured my schema xml with all field names I needed, and created
> a xml with these fields, but in field wich I use some date I receive the
> following error:
> On my schema.xml the fields that I need date I configured it with *
> type="date"*
> On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*
>
> Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
> *SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
>        at org.apache.solr.schema.DateField.parseMath(DateField.java:163)
>        at
> org.apache.solr.schema.TrieDateField.createField(TrieDateField.java:171)
>        at
> org.apache.solr.schema.SchemaField.createField(SchemaField.java:94)
>        at
> org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:246)
>        at
>
> org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
>        at
> org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:139)
>        at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
>        at
>
> org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
>        at
>
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
>        at
>
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
>        at
>
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>        at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
>        at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>        at java.lang.Thread.run(Thread.java:619)
>
> Somebody could help me?
>
> Tks!!
>
> --
> Claudio Devecchi
>



-- 
Claudio Devecchi
flickr.com/cdevecchi

RE: Error indexing "date"

Posted by Michael Griffiths <mg...@am-ind.com>.
What's your XML data look like (for the data)?

Looks like it's not the same date format Solr accepts.

-----Original Message-----
From: Claudio Devecchi [mailto:cdevecchi@gmail.com] 
Sent: Tuesday, August 03, 2010 11:16 AM
To: solr-user@lucene.apache.org
Subject: Error indexing "date"

Hi everybody,

I'm having a error to index a xml file.

I have configured my schema xml with all field names I needed, and created a xml with these fields, but in field wich I use some date I receive the following error:
On my schema.xml the fields that I need date I configured it with *
type="date"*
On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*

Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
*SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
        at org.apache.solr.schema.DateField.parseMath(DateField.java:163)
        at
org.apache.solr.schema.TrieDateField.createField(TrieDateField.java:171)
        at
org.apache.solr.schema.SchemaField.createField(SchemaField.java:94)
        at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:246)
        at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
        at
org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:139)
        at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:69)
        at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:619)

Somebody could help me?

Tks!!

--
Claudio Devecchi

Re: Error indexing "date"

Posted by Chris Hostetter <ho...@fucit.org>.
: do you know how can I do with my schema to some fields dont be necessary?
: because in some cases it will be null and sometimes not..

You can say required="false" on fields in your schema.xml -- but that 
won't change your situation (required="false" is actually the default).

The problem here isn't that Solr thinks those fields are "neccessary" the 
problem is that you are sending a string value (the empty string, aka "") 
and asking solr to index it in a date field, but it can't be parsed as a 
date.

if you have documents for which the value is 'null' then the correct 
course of action is to not include that field in your document at all when 
sending it to Solr.


-Hoss


Re: Error indexing "date"

Posted by Claudio Devecchi <cd...@gmail.com>.
yep...

do you know how can I do with my schema to some fields dont be necessary?
because in some cases it will be null and sometimes not..


but very thanks, now indexed ok with no errors

tks

On Tue, Aug 3, 2010 at 8:05 PM, Chris Hostetter <ho...@fucit.org>wrote:

> : The files are attached.
>
> From the files you sent...
>
>  <field name="lastsignindate"></field>
>
> ...as i said before...
>
> : > > > >>> According to that error message, you are attempting to index a
> date
> : > > > >>> field with a value that is an empty string,
> : > > > >>>
> : > > > >>> Ie...
> : > > > >>>
> : > > > >>> <field name="signupdate"></field>
> : > > > >>>
> : > > > >>> ...or perhaps...
> : > > > >>>
> : > > > >>> <field name="signupdate" />
> : > > > >>>
> : > > > >>> (xml makes no distinction)
>
>
> -Hoss
>
>


-- 
Claudio Devecchi
flickr.com/cdevecchi

Re: Error indexing "date"

Posted by Chris Hostetter <ho...@fucit.org>.
: The files are attached.

>From the files you sent...

  <field name="lastsignindate"></field>

...as i said before...

: > > > >>> According to that error message, you are attempting to index a date
: > > > >>> field with a value that is an empty string,
: > > > >>>
: > > > >>> Ie...
: > > > >>>
: > > > >>> <field name="signupdate"></field>
: > > > >>>
: > > > >>> ...or perhaps...
: > > > >>>
: > > > >>> <field name="signupdate" />
: > > > >>>
: > > > >>> (xml makes no distinction)


-Hoss


Re: Error indexing "date"

Posted by Claudio Devecchi <cd...@gmail.com>.
Sure Erick,

The files are attached.

Very tks

On Tue, Aug 3, 2010 at 7:41 PM, Erick Erickson <er...@gmail.com>wrote:

> Can we see the rest of your document and your schema? Lots of people
> index dates, so my first guess is that some innocent change and/or typo
> is causing your problems, but there's no way to check without you posting
> the complete information.
>
> Best
> Erick
>
> On Tue, Aug 3, 2010 at 4:31 PM, Claudio Devecchi <cdevecchi@gmail.com
> >wrote:
>
> > Hi guys...
> >
> > I already changed from : to . and nothing happens, the problem is the
> solr
> > ignores the content of the date, but if it is an incorrecty format, solr
> > shows this
> >
> > tks
> >
> > On Tue, Aug 3, 2010 at 5:05 PM, Walter Underwood <wunder@wunderwood.org
> > >wrote:
> >
> > > That is because it is an illegal ISO 8601 datetime. The seconds portion
> > > should be "35.999", not "35:999".
> > >
> > > wunder
> > >
> > > On Aug 3, 2010, at 12:55 PM, Michael Griffiths wrote:
> > >
> > > > I'd guess the DIH is not extracting the date correctly.
> > > >
> > > > Either way, Solr is not retrieving the date.
> > > >
> > > > -----Original Message-----
> > > > From: Claudio Devecchi [mailto:cdevecchi@gmail.com]
> > > > Sent: Tuesday, August 03, 2010 3:45 PM
> > > > To: solr-user@lucene.apache.org
> > > > Subject: Re: Error indexing "date"
> > > >
> > > > Somebody have an idea?
> > > >
> > > > My fields are not null and solr apparently thinks that they are
> > > >
> > > > On Tue, Aug 3, 2010 at 2:55 PM, Claudio Devecchi <
> cdevecchi@gmail.com
> > > >wrote:
> > > >
> > > >> My field is not empty, I have the date on the field and the error
> > > >> happens, the type to put on schema.xml is date? or have any other?
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter <
> > > hossman_lucene@fucit.org>wrote:
> > > >>
> > > >>>
> > > >>> : On my xml file the date is on this format:*
> > > >>> 2010-07-31T13:37:35:999Z*
> > > >>>
> > > >>> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
> > > >>> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date
> > > >>> String:''*
> > > >>>
> > > >>> According to that error message, you are attempting to index a date
> > > >>> field with a value that is an empty string,
> > > >>>
> > > >>> Ie...
> > > >>>
> > > >>> <field name="signupdate"></field>
> > > >>>
> > > >>> ...or perhaps...
> > > >>>
> > > >>> <field name="signupdate" />
> > > >>>
> > > >>> (xml makes no distinction)
> > > >>>
> > > >>>
> > > >>>
> > > >>> -Hoss
> > > >>>
> > > >>>
> > > >>
> > > >>
> > > >> --
> > > >> Claudio Devecchi
> > > >> flickr.com/cdevecchi
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Claudio Devecchi
> > > > flickr.com/cdevecchi
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Claudio Devecchi
> > flickr.com/cdevecchi
> >
>



-- 
Claudio Devecchi
flickr.com/cdevecchi

Re: Error indexing "date"

Posted by Erick Erickson <er...@gmail.com>.
Can we see the rest of your document and your schema? Lots of people
index dates, so my first guess is that some innocent change and/or typo
is causing your problems, but there's no way to check without you posting
the complete information.

Best
Erick

On Tue, Aug 3, 2010 at 4:31 PM, Claudio Devecchi <cd...@gmail.com>wrote:

> Hi guys...
>
> I already changed from : to . and nothing happens, the problem is the solr
> ignores the content of the date, but if it is an incorrecty format, solr
> shows this
>
> tks
>
> On Tue, Aug 3, 2010 at 5:05 PM, Walter Underwood <wunder@wunderwood.org
> >wrote:
>
> > That is because it is an illegal ISO 8601 datetime. The seconds portion
> > should be "35.999", not "35:999".
> >
> > wunder
> >
> > On Aug 3, 2010, at 12:55 PM, Michael Griffiths wrote:
> >
> > > I'd guess the DIH is not extracting the date correctly.
> > >
> > > Either way, Solr is not retrieving the date.
> > >
> > > -----Original Message-----
> > > From: Claudio Devecchi [mailto:cdevecchi@gmail.com]
> > > Sent: Tuesday, August 03, 2010 3:45 PM
> > > To: solr-user@lucene.apache.org
> > > Subject: Re: Error indexing "date"
> > >
> > > Somebody have an idea?
> > >
> > > My fields are not null and solr apparently thinks that they are
> > >
> > > On Tue, Aug 3, 2010 at 2:55 PM, Claudio Devecchi <cdevecchi@gmail.com
> > >wrote:
> > >
> > >> My field is not empty, I have the date on the field and the error
> > >> happens, the type to put on schema.xml is date? or have any other?
> > >>
> > >>
> > >>
> > >>
> > >> On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter <
> > hossman_lucene@fucit.org>wrote:
> > >>
> > >>>
> > >>> : On my xml file the date is on this format:*
> > >>> 2010-07-31T13:37:35:999Z*
> > >>>
> > >>> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
> > >>> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date
> > >>> String:''*
> > >>>
> > >>> According to that error message, you are attempting to index a date
> > >>> field with a value that is an empty string,
> > >>>
> > >>> Ie...
> > >>>
> > >>> <field name="signupdate"></field>
> > >>>
> > >>> ...or perhaps...
> > >>>
> > >>> <field name="signupdate" />
> > >>>
> > >>> (xml makes no distinction)
> > >>>
> > >>>
> > >>>
> > >>> -Hoss
> > >>>
> > >>>
> > >>
> > >>
> > >> --
> > >> Claudio Devecchi
> > >> flickr.com/cdevecchi
> > >>
> > >
> > >
> > >
> > > --
> > > Claudio Devecchi
> > > flickr.com/cdevecchi
> >
> >
> >
> >
> >
>
>
> --
> Claudio Devecchi
> flickr.com/cdevecchi
>

Re: Error indexing "date"

Posted by Claudio Devecchi <cd...@gmail.com>.
Hi guys...

I already changed from : to . and nothing happens, the problem is the solr
ignores the content of the date, but if it is an incorrecty format, solr
shows this

tks

On Tue, Aug 3, 2010 at 5:05 PM, Walter Underwood <wu...@wunderwood.org>wrote:

> That is because it is an illegal ISO 8601 datetime. The seconds portion
> should be "35.999", not "35:999".
>
> wunder
>
> On Aug 3, 2010, at 12:55 PM, Michael Griffiths wrote:
>
> > I'd guess the DIH is not extracting the date correctly.
> >
> > Either way, Solr is not retrieving the date.
> >
> > -----Original Message-----
> > From: Claudio Devecchi [mailto:cdevecchi@gmail.com]
> > Sent: Tuesday, August 03, 2010 3:45 PM
> > To: solr-user@lucene.apache.org
> > Subject: Re: Error indexing "date"
> >
> > Somebody have an idea?
> >
> > My fields are not null and solr apparently thinks that they are
> >
> > On Tue, Aug 3, 2010 at 2:55 PM, Claudio Devecchi <cdevecchi@gmail.com
> >wrote:
> >
> >> My field is not empty, I have the date on the field and the error
> >> happens, the type to put on schema.xml is date? or have any other?
> >>
> >>
> >>
> >>
> >> On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter <
> hossman_lucene@fucit.org>wrote:
> >>
> >>>
> >>> : On my xml file the date is on this format:*
> >>> 2010-07-31T13:37:35:999Z*
> >>>
> >>> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
> >>> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date
> >>> String:''*
> >>>
> >>> According to that error message, you are attempting to index a date
> >>> field with a value that is an empty string,
> >>>
> >>> Ie...
> >>>
> >>> <field name="signupdate"></field>
> >>>
> >>> ...or perhaps...
> >>>
> >>> <field name="signupdate" />
> >>>
> >>> (xml makes no distinction)
> >>>
> >>>
> >>>
> >>> -Hoss
> >>>
> >>>
> >>
> >>
> >> --
> >> Claudio Devecchi
> >> flickr.com/cdevecchi
> >>
> >
> >
> >
> > --
> > Claudio Devecchi
> > flickr.com/cdevecchi
>
>
>
>
>


-- 
Claudio Devecchi
flickr.com/cdevecchi

Re: Error indexing "date"

Posted by Walter Underwood <wu...@wunderwood.org>.
That is because it is an illegal ISO 8601 datetime. The seconds portion should be "35.999", not "35:999".

wunder

On Aug 3, 2010, at 12:55 PM, Michael Griffiths wrote:

> I'd guess the DIH is not extracting the date correctly.
> 
> Either way, Solr is not retrieving the date.
> 
> -----Original Message-----
> From: Claudio Devecchi [mailto:cdevecchi@gmail.com] 
> Sent: Tuesday, August 03, 2010 3:45 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Error indexing "date"
> 
> Somebody have an idea?
> 
> My fields are not null and solr apparently thinks that they are
> 
> On Tue, Aug 3, 2010 at 2:55 PM, Claudio Devecchi <cd...@gmail.com>wrote:
> 
>> My field is not empty, I have the date on the field and the error 
>> happens, the type to put on schema.xml is date? or have any other?
>> 
>> 
>> 
>> 
>> On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter <ho...@fucit.org>wrote:
>> 
>>> 
>>> : On my xml file the date is on this format:* 
>>> 2010-07-31T13:37:35:999Z*
>>> 
>>> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
>>> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date 
>>> String:''*
>>> 
>>> According to that error message, you are attempting to index a date 
>>> field with a value that is an empty string,
>>> 
>>> Ie...
>>> 
>>> <field name="signupdate"></field>
>>> 
>>> ...or perhaps...
>>> 
>>> <field name="signupdate" />
>>> 
>>> (xml makes no distinction)
>>> 
>>> 
>>> 
>>> -Hoss
>>> 
>>> 
>> 
>> 
>> --
>> Claudio Devecchi
>> flickr.com/cdevecchi
>> 
> 
> 
> 
> --
> Claudio Devecchi
> flickr.com/cdevecchi





RE: Error indexing "date"

Posted by Michael Griffiths <mg...@am-ind.com>.
I'd guess the DIH is not extracting the date correctly.

Either way, Solr is not retrieving the date.

-----Original Message-----
From: Claudio Devecchi [mailto:cdevecchi@gmail.com] 
Sent: Tuesday, August 03, 2010 3:45 PM
To: solr-user@lucene.apache.org
Subject: Re: Error indexing "date"

Somebody have an idea?

My fields are not null and solr apparently thinks that they are

On Tue, Aug 3, 2010 at 2:55 PM, Claudio Devecchi <cd...@gmail.com>wrote:

> My field is not empty, I have the date on the field and the error 
> happens, the type to put on schema.xml is date? or have any other?
>
>
>
>
> On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter <ho...@fucit.org>wrote:
>
>>
>> : On my xml file the date is on this format:* 
>> 2010-07-31T13:37:35:999Z*
>>
>> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
>> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date 
>> String:''*
>>
>> According to that error message, you are attempting to index a date 
>> field with a value that is an empty string,
>>
>> Ie...
>>
>> <field name="signupdate"></field>
>>
>> ...or perhaps...
>>
>> <field name="signupdate" />
>>
>> (xml makes no distinction)
>>
>>
>>
>> -Hoss
>>
>>
>
>
> --
> Claudio Devecchi
> flickr.com/cdevecchi
>



--
Claudio Devecchi
flickr.com/cdevecchi

Re: Error indexing "date"

Posted by Claudio Devecchi <cd...@gmail.com>.
Somebody have an idea?

My fields are not null and solr apparently thinks that they are

On Tue, Aug 3, 2010 at 2:55 PM, Claudio Devecchi <cd...@gmail.com>wrote:

> My field is not empty, I have the date on the field and the error happens,
> the type to put on schema.xml is date? or have any other?
>
>
>
>
> On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter <ho...@fucit.org>wrote:
>
>>
>> : On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*
>>
>> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
>> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
>>
>> According to that error message, you are attempting to index a date field
>> with a value that is an empty string,
>>
>> Ie...
>>
>> <field name="signupdate"></field>
>>
>> ...or perhaps...
>>
>> <field name="signupdate" />
>>
>> (xml makes no distinction)
>>
>>
>>
>> -Hoss
>>
>>
>
>
> --
> Claudio Devecchi
> flickr.com/cdevecchi
>



-- 
Claudio Devecchi
flickr.com/cdevecchi

Re: Error indexing "date"

Posted by Claudio Devecchi <cd...@gmail.com>.
My field is not empty, I have the date on the field and the error happens,
the type to put on schema.xml is date? or have any other?



On Tue, Aug 3, 2010 at 2:38 PM, Chris Hostetter <ho...@fucit.org>wrote:

>
> : On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*
>
> : Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
> : *SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*
>
> According to that error message, you are attempting to index a date field
> with a value that is an empty string,
>
> Ie...
>
> <field name="signupdate"></field>
>
> ...or perhaps...
>
> <field name="signupdate" />
>
> (xml makes no distinction)
>
>
>
> -Hoss
>
>


-- 
Claudio Devecchi
flickr.com/cdevecchi

Re: Error indexing "date"

Posted by Chris Hostetter <ho...@fucit.org>.
: On my xml file the date is on this format:* 2010-07-31T13:37:35:999Z*
	
: Jul 28, 2010 11:40:44 PM org.apache.solr.common.SolrException log
: *SEVERE: org.apache.solr.common.SolrException: Invalid Date String:''*

According to that error message, you are attempting to index a date field 
with a value that is an empty string, 

Ie...

<field name="signupdate"></field>

...or perhaps...

<field name="signupdate" />

(xml makes no distinction)



-Hoss