Enum google_api_proto::google::cloud::talent::v4beta1::search_jobs_request::KeywordMatchMode
source · #[repr(i32)]pub enum KeywordMatchMode {
Unspecified = 0,
KeywordMatchDisabled = 1,
KeywordMatchAll = 2,
KeywordMatchTitleOnly = 3,
}
Expand description
Controls what keyword matching behavior the search has. When keyword matching is enabled, a keyword match returns jobs that may not match given category filters when there are matching keywords. For example, for the query “program manager” with KeywordMatchMode set to KEYWORD_MATCH_ALL, a job posting with the title “software developer,” which doesn’t fall into “program manager” ontology, and “program manager” appearing in its description will be surfaced.
For queries like “cloud” that don’t contain title or location specific ontology, jobs with “cloud” keyword matches are returned regardless of this enum’s value.
Use [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4beta1.Company.keyword_searchable_job_custom_attributes] if company-specific globally matched custom field/attribute string values are needed. Enabling keyword match improves recall of subsequent search requests.
Variants§
Unspecified = 0
The keyword match option isn’t specified. Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] behavior.
KeywordMatchDisabled = 1
Disables keyword matching.
KeywordMatchAll = 2
Enable keyword matching over [Job.title][google.cloud.talent.v4beta1.Job.title], [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications], and keyword searchable [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes] fields.
KeywordMatchTitleOnly = 3
Only enable keyword matching over [Job.title][google.cloud.talent.v4beta1.Job.title].
Implementations§
source§impl KeywordMatchMode
impl KeywordMatchMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for KeywordMatchMode
impl Clone for KeywordMatchMode
source§fn clone(&self) -> KeywordMatchMode
fn clone(&self) -> KeywordMatchMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeywordMatchMode
impl Debug for KeywordMatchMode
source§impl Default for KeywordMatchMode
impl Default for KeywordMatchMode
source§fn default() -> KeywordMatchMode
fn default() -> KeywordMatchMode
source§impl From<KeywordMatchMode> for i32
impl From<KeywordMatchMode> for i32
source§fn from(value: KeywordMatchMode) -> i32
fn from(value: KeywordMatchMode) -> i32
source§impl Hash for KeywordMatchMode
impl Hash for KeywordMatchMode
source§impl Ord for KeywordMatchMode
impl Ord for KeywordMatchMode
source§fn cmp(&self, other: &KeywordMatchMode) -> Ordering
fn cmp(&self, other: &KeywordMatchMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for KeywordMatchMode
impl PartialEq for KeywordMatchMode
source§fn eq(&self, other: &KeywordMatchMode) -> bool
fn eq(&self, other: &KeywordMatchMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KeywordMatchMode
impl PartialOrd for KeywordMatchMode
source§fn partial_cmp(&self, other: &KeywordMatchMode) -> Option<Ordering>
fn partial_cmp(&self, other: &KeywordMatchMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for KeywordMatchMode
impl TryFrom<i32> for KeywordMatchMode
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<KeywordMatchMode, UnknownEnumValue>
fn try_from(value: i32) -> Result<KeywordMatchMode, UnknownEnumValue>
impl Copy for KeywordMatchMode
impl Eq for KeywordMatchMode
impl StructuralPartialEq for KeywordMatchMode
Auto Trait Implementations§
impl Freeze for KeywordMatchMode
impl RefUnwindSafe for KeywordMatchMode
impl Send for KeywordMatchMode
impl Sync for KeywordMatchMode
impl Unpin for KeywordMatchMode
impl UnwindSafe for KeywordMatchMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request