Fix refactoring mistake when getting index parameters
Fix refactoring mistake when getting index parameters

masterweb121/larasearch,iverberk/larasearch,Huthayfa-Malhas/larasearch,codecourse/larasearch,menthol/Flexible,aqlx86/larasearch,HammamSamara/larasearch