update indexing script to fetch all of type