new SearchInfo( [json])
Information about a search.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
json |
Object |
<optional> |
Extends
Methods
-
getCloseHits()
-
Get the closeHits
Returns:
closeHits- Type
- Integer
-
getTotalHits()
-
Get the totalHits
Returns:
totalHits- Type
- Integer
-
init(json)
-
Initialize from JSON
Parameters:
Name Type Description jsonObject - Overrides:
Returns:
SearchInfo this -
<static> isInstance(obj)
-
Check whether the given object is an instance of this class.
Parameters:
Name Type Description objObject Returns:
- Type
- Boolean
-
setCloseHits(closeHits)
-
Set the closeHits
Parameters:
Name Type Description closeHitsInteger Returns:
this- Type
- SearchInfo
-
setTotalHits(totalHits)
-
Set the totalHits
Parameters:
Name Type Description totalHitsInteger Returns:
this- Type
- SearchInfo
-
toJSON()
-
Export the object as JSON
- Overrides:
Returns:
JSON object- Type
- Object