Package dev.cachly.api.model
Class SearchResponse
java.lang.Object
dev.cachly.api.model.SearchResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-04-17T00:43:25.074268745Z[Etc/UTC]",
comments="Generator version: 7.5.0")
public class SearchResponse
extends Object
SearchResponse
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this SearchResponse object is equal to o.getFound()Get foundgetId()Only present on cache hitCosine similarity score (only on hit)Get thresholdUsedinthashCode()voidvoidvoidsetSimilarity(BigDecimal similarity) voidsetThresholdUsed(BigDecimal thresholdUsed) similarity(BigDecimal similarity) thresholdUsed(BigDecimal thresholdUsed) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_FOUND
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_SIMILARITY
- See Also:
-
JSON_PROPERTY_THRESHOLD_USED
- See Also:
-
-
Constructor Details
-
SearchResponse
public SearchResponse()
-
-
Method Details
-
found
-
getFound
Get found- Returns:
- found
-
setFound
-
id
-
getId
Only present on cache hit- Returns:
- id
-
setId
-
similarity
-
getSimilarity
Cosine similarity score (only on hit)- Returns:
- similarity
-
setSimilarity
-
thresholdUsed
-
getThresholdUsed
Get thresholdUsed- Returns:
- thresholdUsed
-
setThresholdUsed
-
equals
Return true if this SearchResponse object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-