SDK
SDK Jvm v1.x
2

SearchResults #

This class represents a paginated search result.

It can be returned by the following methods:

:::: tabs ::: tab Java

Namespace #

You must include the following package:

import io.kuzzle.sdk.coreClasses.SearchResult;

Properties #

PropertyTypeDescription
aggregations
Map<String, Object>
Search aggregations (can be undefined)
hits
ArrayList<Map<String, Object>>
Page results
total
Integer
Total number of items that can be retrieved
fetched
Integer
Number of retrieved items so far

hits #

Each element of the hits ArrayList is a Map<String, Object> containing the following properties:

PropertyTypeDescription
_id
String
Document ID
_score
Integer
Relevance score
_source
Map<String, Object>
Document content

::: ::: tab Kotlin

Namespace #

You must include the following package:

import io.kuzzle.sdk.coreClasses.SearchResult;

Properties #

PropertyTypeDescription
aggregations
Map<String, Any>
Search aggregations (can be undefined)
hits
ArrayList<Map<String, Any>>
Page results
total
Int
Total number of items that can be retrieved
fetched
Int
Number of retrieved items so far

hits #

Each element of the hits ArrayList is a Map<String, Object> containing the following properties:

PropertyTypeDescription
_id
String
Document ID
_score
Int
Relevance score
_source
Map<String, Any?>
Document content

::: ::::