forked from meilisearch/meilisearch-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearchResult.java
More file actions
29 lines (26 loc) · 723 Bytes
/
SearchResult.java
File metadata and controls
29 lines (26 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.meilisearch.sdk.model;
import java.util.ArrayList;
import java.util.HashMap;
import lombok.Getter;
import lombok.ToString;
/**
* Meilisearch search response data structure for infinite pagination
*
* @see <a href="https://www.meilisearch.com/docs/reference/api/search#response">API
* specification</a>
*/
@Getter
@ToString
public class SearchResult implements Searchable {
ArrayList<HashMap<String, Object>> hits;
Object facetDistribution;
HashMap<String, FacetRating> facetStats;
int processingTimeMs;
ArrayList<Float> queryVector;
String query;
int offset;
int limit;
int estimatedTotalHits;
HashMap<String, Object> _vectors;
public SearchResult() {}
}