make version not hard coded to long

Description

Currently the version of the index is hardcoded to long.

We should make it more generic, e.g. some variant of Comparable.

Environment

None

Assignee

hao yan

Reporter

John Wang

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure