Search: Returns the location or index of query