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

Reply via email to