prototype indexer with simple query

Compiled with NetBeans IDE 7.3.1
Training with weka parameter