method of static class JsNgram

Description

Show found result. Both for perfect matches and partial matches.

Example
JsNgram.showFound(true, selector, 'a/b.txt', 1, 100);
      
Usage

showFound(isPerfection, selector, doc, start, limit);

Argument isPerfection is a boolean value whether it is for perfect matches or partial matches. Argument selector is a html element to place the result. Argument doc should be null for document listing level, and should be a document id for hit listing level. Argument start is a number of items to skip. Argument limit is a number of items to show at once.

This method is just a branching point of two methods showFoundByHit and showFoundByDoc. They are to show hits inside a document and to show documents, respectively.

Returns a hash object with a key deferred with value as an array of jQuery deferred object. It also has a key next when there are records not shown yet.