hi sam you can add content and time stamp field like this.
// add content doc.add(new Field("contents", content,Field.Store.NO,Field.Index.ANALYZED); // add timestamp NumericField timestampField = new NumericField("timestamp"); timestampField.setLongValue(DateField.stringToTime(timestamp)); doc.add(timestampField); To perform range querying or filtering against a NumericField, use NumericRangeQuery or NumericRangeFilter. you can see the http://wiki.apache.org/lucene-java/SearchNumericalFields to find any useful information. On Tue, Jul 10, 2012 at 3:38 PM, sam <hairen...@yahoo.com.cn> wrote: > timestamp -- Don't Grow Old, Grow Up... :-)