Create QueryIndex.java