raise error if index is nil letting them know they are searching on an unindexed field