Support index in filter callback
Update docs