add ID and type validation for IndexRequest