Fix recursion bug
Partial support for post index search API