fix server-rendered results by generating result pages into a buffer and reading that