Re: searching / sorting on timestamp and update efficiency

2011-09-22 Thread Sam Jiang
Hi Jason Thank you for the quick reply. This is exactly what I was looking for =D One more question tho, NumericRangeQuery says the class is equivalent to NumbericRangeFilter functionally. Is there any preference between the two? thanks On Thu, Sep 22, 2011 at 10:29 AM, Sendros, Jason < jason.se

RE: searching / sorting on timestamp and update efficiency

2011-09-22 Thread Sendros, Jason
Storing the date as a long and then searching with NumericRangeQuery will provide you with exactly what you're looking for. This is an efficient search solution for numeric data. Optimize() will reduce the size of your index and improve search time at the cost of a large burst of overhead. Unle