This is useful, if you don't want to search and return certain posts (or posts from a certain post type), but you want to index the contents along with the parent post.
Ex. Returning Forum topics only as results, but also indexing all the replies to that topic
The codes below only work with the engine. After the code is applied, the index table needs to be re-created for it to apply.