fixed bug in compare function
Merge branch 'indexer_test' of https://github.com/kelrien/pyretrieval into indexer_test