@@ -467,6 +467,18 @@ class SearchJobsRequest(proto.Message):
467467 top of existing relevance score (determined by
468468 API algorithm).
469469 disable_keyword_match (bool):
470+ This field is deprecated. Please use
471+ [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode]
472+ going forward.
473+
474+ To migrate, disable_keyword_match set to false maps to
475+ [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL],
476+ and disable_keyword_match set to true maps to
477+ [KeywordMatchMode.KEYWORD_MATCH_DISABLED][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED].
478+ If
479+ [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode]
480+ is set, this field is ignored.
481+
470482 Controls whether to disable exact keyword match on
471483 [Job.title][google.cloud.talent.v4.Job.title],
472484 [Job.description][google.cloud.talent.v4.Job.description],
@@ -492,6 +504,14 @@ class SearchJobsRequest(proto.Message):
492504 recall of subsequent search requests.
493505
494506 Defaults to false.
507+ keyword_match_mode (google.cloud.talent_v4.types.SearchJobsRequest.KeywordMatchMode):
508+ Controls what keyword match options to use. If both
509+ keyword_match_mode and disable_keyword_match are set,
510+ keyword_match_mode will take precedence.
511+
512+ Defaults to
513+ [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL]
514+ if no value is specified.
495515 """
496516
497517 class SearchMode (proto .Enum ):
@@ -510,10 +530,42 @@ class DiversificationLevel(proto.Enum):
510530 representative job of the cluster is displayed to the job seeker
511531 higher up in the results, with the other jobs being displayed
512532 lower down in the results.
533+
534+ If you are using pageToken to page through the result set,
535+ latency might be lower but we can't guarantee that all results
536+ are returned. If you are using page offset, latency might be
537+ higher but all results are returned.
513538 """
514539 DIVERSIFICATION_LEVEL_UNSPECIFIED = 0
515540 DISABLED = 1
516541 SIMPLE = 2
542+ ONE_PER_COMPANY = 3
543+ TWO_PER_COMPANY = 4
544+ DIVERSIFY_BY_LOOSER_SIMILARITY = 5
545+
546+ class KeywordMatchMode (proto .Enum ):
547+ r"""Controls what keyword matching behavior the search has. When keyword
548+ matching is enabled, a keyword match returns jobs that may not match
549+ given category filters when there are matching keywords. For
550+ example, for the query "program manager" with KeywordMatchMode set
551+ to KEYWORD_MATCH_ALL, a job posting with the title "software
552+ developer," which doesn't fall into "program manager" ontology, and
553+ "program manager" appearing in its description will be surfaced.
554+
555+ For queries like "cloud" that don't contain title or location
556+ specific ontology, jobs with "cloud" keyword matches are returned
557+ regardless of this enum's value.
558+
559+ Use
560+ [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4.Company.keyword_searchable_job_custom_attributes]
561+ if company-specific globally matched custom field/attribute string
562+ values are needed. Enabling keyword match improves recall of
563+ subsequent search requests.
564+ """
565+ KEYWORD_MATCH_MODE_UNSPECIFIED = 0
566+ KEYWORD_MATCH_DISABLED = 1
567+ KEYWORD_MATCH_ALL = 2
568+ KEYWORD_MATCH_TITLE_ONLY = 3
517569
518570 class CustomRankingInfo (proto .Message ):
519571 r"""Custom ranking information for
@@ -542,7 +594,7 @@ class CustomRankingInfo(proto.Message):
542594 evaluated to a number.
543595
544596 Parenthesis are supported to adjust calculation precedence.
545- The expression must be < 100 characters in length.
597+ The expression must be < 200 characters in length.
546598
547599 The expression is considered invalid for a job if the
548600 expression references custom attributes that are not
@@ -595,6 +647,7 @@ class ImportanceLevel(proto.Enum):
595647 proto .MESSAGE , number = 14 , message = CustomRankingInfo ,
596648 )
597649 disable_keyword_match = proto .Field (proto .BOOL , number = 16 ,)
650+ keyword_match_mode = proto .Field (proto .ENUM , number = 18 , enum = KeywordMatchMode ,)
598651
599652
600653class SearchJobsResponse (proto .Message ):
0 commit comments