adding comparison function booleanquery - InversedIndex