Interface IMatchV2Service
- Namespace
- Textkernel.Tx.Services
- Assembly
- Textkernel.Tx.SDK.dll
Use SearchMatchV2
public interface IMatchV2Service
Methods
AddCandidate(string, ParsedResume, IEnumerable<string>, bool, Dictionary<string, string>)
Upload a candidates CV to the search and match V2 environment.
Task<ApiResponse<object>> AddCandidate(string documentId, ParsedResume resume, IEnumerable<string> roles = null, bool anonymize = false, Dictionary<string, string> customFields = null)
Parameters
documentIdstringThe id to use for the document
resumeParsedResumeParsed output from the Textkernel CV/Resume Parser
rolesIEnumerable<string>The roles associated with the request. Defaults to ["All"] if none are provided.
anonymizeboolA boolean flag to strip PII data out of the resume before indexing.
customFieldsDictionary<string, string>A collection of custom fields represented as key-value pairs.
Returns
Exceptions
- TxException
Thrown when an API error occurs
AddJob(string, ParsedJob, IEnumerable<string>, Dictionary<string, string>)
Upload a job to the search and match V2 environment.
Task<ApiResponse<object>> AddJob(string documentId, ParsedJob job, IEnumerable<string> roles = null, Dictionary<string, string> customFields = null)
Parameters
documentIdstringThe id to use for the document
jobParsedJobParsed output from the Textkernel Job Parser
rolesIEnumerable<string>The roles associated with the request. Defaults to ["All"] if none are provided.
customFieldsDictionary<string, string>A collection of custom fields represented as key-value pairs.
Returns
Exceptions
- TxException
Thrown when an API error occurs
AutocompleteCandidates(AutocompleteCandidatesField, string, params string[])
Returns a list of suggested Completions. This endpoint is used to give a user instant feedback while typing a query. If the given field is the FULLTEXT field, the service returns suggestions from all configured dictionaries that are not explicitly excluded from full-text suggestions.
Task<AutocompleteResponse> AutocompleteCandidates(AutocompleteCandidatesField field, string input, params string[] languages)
Parameters
fieldAutocompleteCandidatesFieldWhich field to use to retrieve completions
inputstringThe user-typed input string.
languagesstring[]Optional 2-letter ISO-639-1 language codes. The first language is used for field label translations. All languages are used to retrieve completions when the environment doesn't have default languages set.
Returns
Exceptions
- TxException
Thrown when an API error occurs
AutocompleteJobs(AutocompleteJobsField, string, params string[])
Returns a list of suggested Completions. This endpoint is used to give a user instant feedback while typing a query. If the given field is the FULLTEXT field, the service returns suggestions from all configured dictionaries that are not explicitly excluded from full-text suggestions.
Task<AutocompleteResponse> AutocompleteJobs(AutocompleteJobsField field, string input, params string[] languages)
Parameters
fieldAutocompleteJobsFieldWhich field to use to retrieve completions
inputstringThe user-typed input string.
languagesstring[]Optional 2-letter ISO-639-1 language codes. The first language is used for field label translations. All languages are used to retrieve completions when the environment doesn't have default languages set.
Returns
Exceptions
- TxException
Thrown when an API error occurs
DeleteCandidates(IEnumerable<string>)
Delete candidate documents from environment
Task<DeleteDocumentsResponse> DeleteCandidates(IEnumerable<string> documentIds)
Parameters
documentIdsIEnumerable<string>The document IDs to delete
Returns
Exceptions
- TxException
Thrown when an API error occurred
DeleteJobs(IEnumerable<string>)
Delete job documents from environment
Task<DeleteDocumentsResponse> DeleteJobs(IEnumerable<string> documentIds)
Parameters
documentIdsIEnumerable<string>The document IDs to delete
Returns
Exceptions
- TxException
Thrown when an API error occurred
MatchCandidates(DocumentSource, Options, SearchQuery)
Match an existing candidate document with filters provided.
Task<SearchResponse> MatchCandidates(DocumentSource sourceDocument, Options options, SearchQuery query = null)
Parameters
sourceDocumentDocumentSourceThe document to generate the search query from
optionsOptionsOptions for the Match request
querySearchQueryThe query object that will be combined with the match query to drive the search
Returns
Exceptions
- TxException
Thrown when an API error occurred
MatchJobs(DocumentSource, Options, SearchQuery)
Match an existing job document with filters provided.
Task<SearchResponse> MatchJobs(DocumentSource sourceDocument, Options options, SearchQuery query = null)
Parameters
sourceDocumentDocumentSourceThe document to generate the search query from
optionsOptionsOptions for the Match request
querySearchQueryThe query object that will be combined with the match query to drive the search
Returns
Exceptions
- TxException
Thrown when an API error occurred
SearchCandidates(SearchQuery, Options)
Search for a candidate based on the query provided.
Task<SearchResponse> SearchCandidates(SearchQuery query, Options options)
Parameters
querySearchQueryThe query object that will drive the search.
optionsOptionsOptions for the search request
Returns
Exceptions
- TxException
Thrown when an API error occurred
SearchJobs(SearchQuery, Options)
Search for a job based on the query provided.
Task<SearchResponse> SearchJobs(SearchQuery query, Options options)
Parameters
querySearchQueryThe query object that will drive the search.
optionsOptionsOptions for the search request
Returns
Exceptions
- TxException
Thrown when an API error occurred