FSIndexRepositoryMgr irm = casMgr.getIndexRepositoryMgr();
FSIndexComparator comp = irm.createComparator();
comp.setType(tsa.getType("test.primitives.Example"));
comp.addKey(tsa.getFeatureByFullName("test.primitives.Example:doubleFeature"),
FSIndexComparator.STANDARD_COMPARE);
irm.createIndex(comp, "doubleIndex");
comp = irm.createComparator();
comp.setType(tsa.getType("test.primitives.Example"));
comp.addKey(tsa.getFeatureByFullName("test.primitives.Example:longFeature"),
FSIndexComparator.REVERSE_STANDARD_COMPARE);