index search queries correct order