Hits new - Axiom

A Hits object is a representaiton of a result set. It is returned by the method app.getHits(). It has the following properties and methods:

Contents

Hits.length

Description

Hits.length

(Number) - The total number of results in this result set.


Hits.total

Description

Hits.total

(Number) - The total number of results in this result set.


Hits.get()

Description

Hits.get(index)

Returns the specified Axiom Object from within the result set.

Parameters

  • index (Number) - Index of the Axiom Object to retrieve from the result set.

Returns

(AxiomObject) - The specified Axiom Object from within the result set.


Hits.objects()

Description

Hits.objects(start, length)

Returns the specified Axiom Objects from within the result set.

Parameters

  • start (Number) - Starting index of Axiom Objects to retrieve from the result set.
  • length (Number) - Number of Axiom Objects to retrieve from the result set.

Returns

(Array) - The specified Axiom Objects from within the result set.