This is necessary to divide any document into small sections to perform full-text searching more accurately and precisely. If a search will be performed on the whole document then there are chances that the final output may be disappointed or not as per your expectations.