Use naive approach since inverted index is too slow for large datasets