Re: Invalid_Date_String on posting XML to the index

2009-04-16 Thread Shalin Shekhar Mangar
On Thu, Apr 16, 2009 at 1:45 PM, Mark Allan wrote: > > Hi, thanks for your prompt reply. I'm a bit confused though - the only way > to do this is a two-step process? > > I have to write code to munge the XML into another document which is > exactly the same except for the format of the Date fiel

Re: Invalid_Date_String on posting XML to the index

2009-04-16 Thread Shalin Shekhar Mangar
On Thu, Apr 16, 2009 at 1:45 PM, Mark Allan wrote: > > Hi, thanks for your prompt reply. I'm a bit confused though - the only way > to do this is a two-step process? > > I have to write code to munge the XML into another document which is > exactly the same except for the format of the Date fiel

Re: Invalid_Date_String on posting XML to the index

2009-04-16 Thread Mark Allan
On 16 Apr 2009, at 9:00 am, Shalin Shekhar Mangar wrote: On Thu, Apr 16, 2009 at 1:20 PM, Mark Allan wrote: My thinking is that Solr is trying to add the field directly as '1953' before doing the text factory stuff and is therefore not in the right format for indexing. Does that sound

Re: Invalid_Date_String on posting XML to the index

2009-04-16 Thread Shalin Shekhar Mangar
On Thu, Apr 16, 2009 at 1:20 PM, Mark Allan wrote: > > My thinking is that Solr is trying to add the field directly as '1953' > before doing the text factory stuff and is therefore not in the right format > for indexing. Does that sound like a reasonable assumption and am I missing > something w

Invalid_Date_String on posting XML to the index

2009-04-16 Thread Mark Allan
Hi all, I'm encountering a problem when I try to add records with a date field to the index. The records I'm adding have very little date precision, usually MMDD but some only have year and month, others only have a year. I'm trying to get around this by using a text pattern factory