.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: 石玉明 [mailto:shiyuming@gmail.com]
> Sent: Saturday, March 26, 2011 2:26 AM
> To: java-user@lucene.apache.org
> Subject: Re: Sorting by NumericField not working
&g
NumericField include int float double ... and so on. but your sort uses
SortField.int . Maybe that is the key point.
-- newbie of Lucene
2011-03-26
石玉明
发件人: Azhar Jassal
发送时间: 2011-03-25 22:23:46
收件人: java-user@lucene.apache.org
抄送:
主题: Sorting by NumericField not working
Hi,
>From the javadoc for SortField: Fields must be indexed in order to
sort by them.
>From the javadoc for NumericField:
public NumericField(String name,
int precisionStep,
Field.Store store,
boolean index)
--
Ian.
P.S. Read the javadocs!