to merge the collection of data in indexing, a merge algorithm is used similar to sql merge.