Global.helma.Search.HitCollection.get (idx)
Silently converts the hit at the given index position into an instance of helma.Search.Document.

  • Parameter {Number}:
    idx The index position of the hit
  • Returns
    The document object at the given index position
Sourcecode in /home/hannes/helma/modules/helma/Search.js:
727:   this.get = function(idx) {
728:           var doc = new helma.Search.Document(hits.doc(idx));
729:           doc.score = hits.score(idx);
730:           doc.rank = idx +1;
731:           return doc;
732:       }