public sealed class SearchJobsRequest.Types.CustomRankingInfo : IMessage<SearchJobsRequest.Types.CustomRankingInfo>, IEquatable<SearchJobsRequest.Types.CustomRankingInfo>, IDeepCloneable<SearchJobsRequest.Types.CustomRankingInfo>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Talent Solution v4 API class SearchJobsRequest.Types.CustomRankingInfo.
Custom ranking information for
[SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest].
public SearchJobsRequest.Types.CustomRankingInfo.Types.ImportanceLevel ImportanceLevel { get; set; }
Required. Controls over how important the score of
[CustomRankingInfo.ranking_expression][google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ranking_expression]
gets applied to job's final ranking position.
Required. Controls over how job documents get ranked on top of existing
relevance score (determined by API algorithm). A combination of the
ranking expression and relevance score is used to determine job's final
ranking position.
The syntax for this expression is a subset of Google SQL syntax.
Supported operators are: +, -, *, /, where the left and right side of
the operator is either a numeric
[Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes]
key, integer/double value or an expression that can be evaluated to a
number.
Parenthesis are supported to adjust calculation precedence. The
expression must be < 200 characters in length.
The expression is considered invalid for a job if the expression
references custom attributes that are not populated on the job or if the
expression results in a divide by zero. If an expression is invalid for a
job, that job is demoted to the end of the results.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eSearchJobsRequest.Types.CustomRankingInfo\u003c/code\u003e class within the Google Cloud Talent Solution v4 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCustomRankingInfo\u003c/code\u003e class is used to define how job documents are ranked, based on a custom ranking expression and relevance scores.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eCustomRankingInfo\u003c/code\u003e is 2.7.0, with previous versions back to 1.0.0 also available in the reference documentation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomRankingInfo\u003c/code\u003e implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eImportanceLevel\u003c/code\u003e and \u003ccode\u003eRankingExpression\u003c/code\u003e, to define how ranking is performed, and the importance of the custom ranking expression in the overall job ranking process.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Talent Solution v4 API - Class SearchJobsRequest.Types.CustomRankingInfo (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.6.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.5.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.4.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.3.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.2.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.1.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/2.0.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.4.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.3.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.2.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.1.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Talent.V4/1.0.0/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo) \n\n public sealed class SearchJobsRequest.Types.CustomRankingInfo : IMessage\u003cSearchJobsRequest.Types.CustomRankingInfo\u003e, IEquatable\u003cSearchJobsRequest.Types.CustomRankingInfo\u003e, IDeepCloneable\u003cSearchJobsRequest.Types.CustomRankingInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Talent Solution v4 API class SearchJobsRequest.Types.CustomRankingInfo.\n\nCustom ranking information for\n\\[SearchJobsRequest\\]\\[google.cloud.talent.v4.SearchJobsRequest\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SearchJobsRequest.Types.CustomRankingInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SearchJobsRequest](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest)[Types](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest.Types)[CustomRankingInfo](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchJobsRequest](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest)[Types](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest.Types)[CustomRankingInfo](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchJobsRequest](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest)[Types](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest.Types)[CustomRankingInfo](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.SearchJobsRequest.Types.CustomRankingInfo), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Talent.V4](/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4)\n\nAssembly\n--------\n\nGoogle.Cloud.Talent.V4.dll\n\nConstructors\n------------\n\n### CustomRankingInfo()\n\n public CustomRankingInfo()\n\n### CustomRankingInfo(CustomRankingInfo)\n\n public CustomRankingInfo(SearchJobsRequest.Types.CustomRankingInfo other)\n\nProperties\n----------\n\n### ImportanceLevel\n\n public SearchJobsRequest.Types.CustomRankingInfo.Types.ImportanceLevel ImportanceLevel { get; set; }\n\nRequired. Controls over how important the score of\n\\[CustomRankingInfo.ranking_expression\\]\\[google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ranking_expression\\]\ngets applied to job's final ranking position.\n\nAn error is thrown if not specified.\n\n### RankingExpression\n\n public string RankingExpression { get; set; }\n\nRequired. Controls over how job documents get ranked on top of existing\nrelevance score (determined by API algorithm). A combination of the\nranking expression and relevance score is used to determine job's final\nranking position.\n\nThe syntax for this expression is a subset of Google SQL syntax.\n\nSupported operators are: +, -, \\*, /, where the left and right side of\nthe operator is either a numeric\n\\[Job.custom_attributes\\]\\[google.cloud.talent.v4.Job.custom_attributes\\]\nkey, integer/double value or an expression that can be evaluated to a\nnumber.\n\nParenthesis are supported to adjust calculation precedence. The\nexpression must be \\\u003c 200 characters in length.\n\nThe expression is considered invalid for a job if the expression\nreferences custom attributes that are not populated on the job or if the\nexpression results in a divide by zero. If an expression is invalid for a\njob, that job is demoted to the end of the results.\n\nSample ranking expression\n(year + 25) \\* 0.25 - (freshness / 0.5)"]]