add a debug search, and change the type of index struct to termid->docid1->docid2...