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

On Wed, Mar 28, 2012 at 3:12 AM, Brandon Mintern <[email protected]>wrote:

> On Tue, Mar 27, 2012 at 12:21 AM, jianwen lou <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
*
*twitter.com/loujianwen

Reply via email to