handling querying for specific attributes within index