lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: May I have "order expression" in Query?
Date Thu, 13 Oct 2011 08:41:13 GMT
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 <laiqinyi@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message