×

Method and an apparatus for fast merging inverted chains

  • US 10,452,692 B2
  • Filed: 09/20/2016
  • Issued: 10/22/2019
  • Est. Priority Date: 09/22/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for fast merging inverted chains performed by a hardware processor, comprising:

  • pre-setting an inverted index including a plurality of inverted chains and recording a length of each inverted chain;

    searching the inverted index and obtaining a subset of the plurality of inverted chains that correspond to at least one keyword;

    sorting the subset of the plurality of inverted chains in an ascending order of the lengths of the subset of multiple inverted chains; and

    sequentially merging the subset of the plurality of inverted chains as the ascending order, wherein the merging includes;

    merging one of the subset of the plurality of inverted chains that has a shortest length with one of the subset of the plurality of inverted chains that has a second shortest length to generate an inverted chain including the one of the subset of the plurality of inverted chains that has the shortest length and the one of the subset of the plurality of inverted chains that has the second shortest length, andmerging the inverted chain with one of the subset of the plurality of inverted chains that has a third shortest length.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×