May I have "order expression" in Query?

2011-10-12 Thread Mead Lai
Hello all, Well, I add some document into index with "date" type : doc.add(new Field("datestamp", "20111012",Store.YES, Index.NOT_ANALYZED)); Then, I want to get the result order by "datestamp" field. I am really sorry aboutI am a newer and did not read some documents very carefully, actu

Re: May I have "order expression" in Query?

2011-10-13 Thread Ian Lea
See the IndexSearcher methods that take org.apache.lucene.search.Sort arguments. For learning about lucene the 2nd edition of Lucene In Action is highly recommended. http://www.manning.com/hatcher3/ -- Ian. On Thu, Oct 13, 2011 at 4:54 AM, Mead Lai wrote: > Hello all, > > Well, I add some do