new module:models/OrderSearchResult()
Constructs a new OrderSearchResult
.
Document representing an order search result.
- Source:
Members
(inner) count :Number
The number of returned documents.
Type:
- Number
- Source:
(inner) data :Array.<Object>
Type:
- Array.<Object>
- Source:
(inner) db_start_record_ :Number
The zero-based index of the record that we want to start with, used to optimize special handling
Type:
- Number
- Source:
(inner) expand :Array.<String>
List of expansions to be applied to each search results. Expands are optional
Type:
- Array.<String>
- Source:
(inner) hits :Array.<module:models/OrderSearchHit>
The sorted array of search hits. This array can be empty.
Type:
- Array.<module:models/OrderSearchHit>
- Source:
(inner) next :module:models/ResultPage
The URL of the next result page.
Type:
- Source:
(inner) previous :module:models/ResultPage
The URL of the previous result page.
Type:
- Source:
(inner) query :module:models/Query
The query passed into the search
Type:
- Source:
(inner) select :String
The fields that you want to select.
Type:
- String
- Source:
(inner) sorts :Array.<module:models/Sort>
The list of sort clauses configured for the search request. Sort clauses are optional.
Type:
- Array.<module:models/Sort>
- Source:
(inner) start :Number
The zero-based index of the first search hit to include in the result.
Type:
- Number
- Source:
(inner) total :Number
The total number of documents.
Type:
- Number
- Source:
Methods
(static) constructFromObject(data, obj) → {module:models/OrderSearchResult}
Constructs a OrderSearchResult
from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data
to obj
if supplied or a new instance if not.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:models/OrderSearchResult | Optional instance to populate. |
- Source:
Returns:
The populated OrderSearchResult
instance.