ECMS-5151 reduce the buffer size when search documents