Package com.algolia.model.search
Class RankingInfo
java.lang.Object
com.algolia.model.search.RankingInfo
Object with detailed information about the record's ranking.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether a filter matched the query.Position of the first matched word in the best matching attribute of the record.Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters).Precision used when computing the geo distance, in meters.Get matchedGeoLocationNumber of exactly matched words.Number of typos encountered when matching the record.Get personalizationWhether the record was promoted by a rule.Whether the record is re-ranked.Number of words between multiple matches in the query plus 1.Overall ranking of the record, expressed as a single integer.getWords()
Number of matched words.int
hashCode()
setFilters
(Integer filters) setFirstMatchedWord
(Integer firstMatchedWord) setGeoDistance
(Integer geoDistance) setGeoPrecision
(Integer geoPrecision) setMatchedGeoLocation
(MatchedGeoLocation matchedGeoLocation) setNbExactWords
(Integer nbExactWords) setNbTypos
(Integer nbTypos) setPersonalization
(Personalization personalization) setPromoted
(Boolean promoted) setPromotedByReRanking
(Boolean promotedByReRanking) setProximityDistance
(Integer proximityDistance) setUserScore
(Integer userScore) toString()
-
Constructor Details
-
RankingInfo
public RankingInfo()
-
-
Method Details
-
setFilters
-
getFilters
Whether a filter matched the query. minimum: 0 -
setFirstMatchedWord
-
getFirstMatchedWord
Position of the first matched word in the best matching attribute of the record. minimum: 0 -
setGeoDistance
-
getGeoDistance
Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters). minimum: 0 -
setGeoPrecision
-
getGeoPrecision
Precision used when computing the geo distance, in meters. minimum: 1 -
setMatchedGeoLocation
-
getMatchedGeoLocation
Get matchedGeoLocation -
setPersonalization
-
getPersonalization
Get personalization -
setNbExactWords
-
getNbExactWords
Number of exactly matched words. minimum: 0 -
setNbTypos
-
getNbTypos
Number of typos encountered when matching the record. minimum: 0 -
setPromoted
-
getPromoted
Whether the record was promoted by a rule. -
setProximityDistance
-
getProximityDistance
Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0. minimum: 0 -
setUserScore
-
getUserScore
Overall ranking of the record, expressed as a single integer. This attribute is internal. -
setWords
-
getWords
Number of matched words. minimum: 1 -
setPromotedByReRanking
-
getPromotedByReRanking
Whether the record is re-ranked. -
equals
-
hashCode
public int hashCode() -
toString
-