2018-10-05 11:45:46 -04:00
|
|
|
--
|
|
|
|
:api: get-records
|
|
|
|
:request: GetRecordsRequest
|
|
|
|
:response: GetRecordsResponse
|
|
|
|
--
|
|
|
|
[id="{upid}-{api}"]
|
2018-08-29 10:03:58 -04:00
|
|
|
=== Get Records API
|
|
|
|
|
|
|
|
The Get Records API retrieves one or more record results.
|
2018-10-05 11:45:46 -04:00
|
|
|
It accepts a +{request}+ object and responds
|
|
|
|
with a +{response}+ object.
|
2018-08-29 10:03:58 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-08-29 10:03:58 -04:00
|
|
|
==== Get Records Request
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
A +{request}+ object gets created with an existing non-null `jobId`.
|
2018-08-29 10:03:58 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-08-29 10:03:58 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Constructing a new request referencing an existing `jobId`
|
|
|
|
|
|
|
|
==== Optional Arguments
|
|
|
|
The following arguments are optional:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-desc]
|
2018-08-29 10:03:58 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> If `true`, the records are sorted in descending order. Defaults to `false`.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-end]
|
2018-08-29 10:03:58 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Records with timestamps earlier than this time will be returned.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-exclude-interim]
|
2018-08-29 10:03:58 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> If `true`, interim results will be excluded. Defaults to `false`.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-page]
|
2018-08-29 10:03:58 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The page parameters `from` and `size`. `from` specifies the number of records to skip.
|
|
|
|
`size` specifies the maximum number of records to get. Defaults to `0` and `100` respectively.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-record-score]
|
2018-08-29 10:03:58 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Records with record_score greater or equal than this value will be returned.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-sort]
|
2018-08-29 10:03:58 -04:00
|
|
|
--------------------------------------------------
|
2018-09-04 06:38:24 -04:00
|
|
|
<1> The field to sort records on. Defaults to `record_score`.
|
2018-08-29 10:03:58 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-start]
|
2018-08-29 10:03:58 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Records with timestamps on or after this time will be returned.
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
include::../execution.asciidoc[]
|
2018-08-29 10:03:58 -04:00
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2018-08-29 10:03:58 -04:00
|
|
|
==== Get Records Response
|
|
|
|
|
2018-10-05 11:45:46 -04:00
|
|
|
The returned +{response}+ contains the requested records:
|
2018-08-29 10:03:58 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-05 11:45:46 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-08-29 10:03:58 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The count of records that were matched
|
|
|
|
<2> The records retrieved
|