thanks so much,Brandon Mintern.My mistak,sorry for everyone.

On Wed, Mar 28, 2012 at 3:12 AM, Brandon Mintern <mint...@easyesi.com>wrote:

> On Tue, Mar 27, 2012 at 12:21 AM, jianwen lou <loujan...@gmail.com> wrote:
> > I want to store the long type value to my index files like follwing:
> >
> >                NumericField priceField = new NumericField("price");
> >                priceField.setDoubleValue(temp.getCurrentprice());
> >                document.add(priceField);
> >
> -->                NumericField salesField = new
> NumericField("salescount");
> -->                priceField.setLongValue(temp.getSalescount());
> >                document.add(salesField);
>
> It looks like you're setting priceField's value again instead of
> salesField's. Looks like a copy-paste that wasn't fully edited.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>


-- 
*
*twitter.com/loujianwen

Reply via email to