the id filed is a Integer(from 1 to Integer.MAX_VALUE,unique),
I don’t need range searches by id field,
only use id(a number) to search(get) and sort against the id field.
should I choice NumericField type?
if so how do I set precision step parameter?
thanks for reading
Yes, NumericField would work perfectly for your ID field. If you want to be able to sort and filter but don’t need range queries, just use a precision step of
Integer.MAX_VALUE.