Class SearchSuggestion
- java.lang.Object
-
- io.datahubproject.openapi.generated.SearchSuggestion
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-12-06T11:25:47.362934Z[Etc/UTC]") public class SearchSuggestion extends java.lang.ObjectThe model for the search result
-
-
Constructor Summary
Constructors Constructor Description SearchSuggestion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)SearchSuggestionfrequency(java.lang.Long frequency)@NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.LonggetFrequency()How many matches there are with the suggested text for the given field minimum: -9223372036854775808 maximum: 9223372036854775807@NotNull @Valid java.math.BigDecimalgetScore()The score for how close this suggestion is to the original search query.@NotNull java.lang.StringgetText()The suggestion text for this search queryinthashCode()SearchSuggestionscore(java.math.BigDecimal score)voidsetFrequency(java.lang.Long frequency)voidsetScore(java.math.BigDecimal score)voidsetText(java.lang.String text)SearchSuggestiontext(java.lang.String text)java.lang.StringtoString()
-
-
-
Method Detail
-
text
public SearchSuggestion text(java.lang.String text)
-
getText
@NotNull public @NotNull java.lang.String getText()
The suggestion text for this search query- Returns:
- text
-
setText
public void setText(java.lang.String text)
-
score
public SearchSuggestion score(java.math.BigDecimal score)
-
getScore
@NotNull @Valid public @NotNull @Valid java.math.BigDecimal getScore()
The score for how close this suggestion is to the original search query. The closer to 1 means it is closer to the original query and 0 is further away.- Returns:
- score
-
setScore
public void setScore(java.math.BigDecimal score)
-
frequency
public SearchSuggestion frequency(java.lang.Long frequency)
-
getFrequency
@NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) public @NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getFrequency()
How many matches there are with the suggested text for the given field minimum: -9223372036854775808 maximum: 9223372036854775807- Returns:
- frequency
-
setFrequency
public void setFrequency(java.lang.Long frequency)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-