Automatic query expansion based on a similarity thesaurus