Document search based on right-array division technique