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 <laiqi...@gmail.com> wrote:
> 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, actully, I couldn't find some more detail doc than this:
> http://lucene.apache.org/java/3_3_0/queryparsersyntax.html
> Thanks.
>
> Regards,
> Mead
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to