XF 2.1 Fatal error (memory) when rebuilding search index for profile posts


Active member
Rebuilding the search index is working for me with every data type except profile posts.

From the server error log:
ErrorException: Fatal Error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 667648 bytes)

It also seems like it gets stuck around the same time, but not exactly. It gets to 800k-something and then it's just a white screen. I check the server error log and the above is what I see.

If it matters, I have Enhanced Search and I'm rebuilding the index in the browser.