// Only works because outputs are also in sorted order, and
// we passed 'true' for sharing to PositiveIntOutputs.getSingleton
IntsRef key = Util.getByOutput(fst, 12);
System.out.println(Util.toBytesRef(key, scratchBytes).utf8ToString()); // dogs