Re: How to convert date/timestamp to long in data-config.xml

2011-05-06 Thread Grijesh
HI, You can convert time stamp to long by writing a custom transformer. But how will it help for OutOfMemory error.Because any sorting will use lucene field cache which will take a lot of memory as you have huge data. If you can then buy more RAM for your server. - Thanx: Grijesh www.gettinh

How to convert date/timestamp to long in data-config.xml

2011-05-06 Thread Shanmugavel SRD
SOLR : 1.4.1 There are 1,300,000+ documents in the index. Sorting on a date field with timestamp leads to OutOfMemoryError. So, we are looking for a way to copy the timestamp as a long value to a field and sort based on that field. Can any one help me on how to convert the timestamp to a long value