Interface ISearchMatchService
- Namespace
- Textkernel.Tx.Services
- Assembly
- Textkernel.Tx.SDK.dll
Use SearchMatchV1
public interface ISearchMatchService
Methods
BimetricScore<TTarget>(ParsedJobWithId, List<TTarget>, CategoryWeights, SearchMatchSettings)
Score one or more target documents against a source job
Task<BimetricScoreResponse> BimetricScore<TTarget>(ParsedJobWithId sourceJob, List<TTarget> targetDocuments, CategoryWeights preferredWeights = null, SearchMatchSettings settings = null) where TTarget : IParsedDocWithId
Parameters
sourceJobParsedJobWithIdThe source job
targetDocumentsList<TTarget>The target resumes/jobs
preferredWeightsCategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source job
settingsSearchMatchSettingsSettings to be used for this scoring request
Returns
Type Parameters
TTargetEither ParsedResumeWithId or ParsedJobWithId
Exceptions
- TxException
Thrown when an API error occurs
BimetricScore<TTarget>(ParsedResumeWithId, List<TTarget>, CategoryWeights, SearchMatchSettings)
Score one or more target documents against a source resume
Task<BimetricScoreResponse> BimetricScore<TTarget>(ParsedResumeWithId sourceResume, List<TTarget> targetDocuments, CategoryWeights preferredWeights = null, SearchMatchSettings settings = null) where TTarget : IParsedDocWithId
Parameters
sourceResumeParsedResumeWithIdThe source resume
targetDocumentsList<TTarget>The target resumes/jobs
preferredWeightsCategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source resume
settingsSearchMatchSettingsSettings to be used for this scoring request
Returns
Type Parameters
TTargetEither ParsedResumeWithId or ParsedJobWithId
Exceptions
- TxException
Thrown when an API error occurs
CreateIndex(IndexType, string)
Create a new index
Task<CreateIndexResponse> CreateIndex(IndexType type, string indexId)
Parameters
typeIndexTypeThe type of documents stored in this index. Either 'Resume' or 'Job'
indexIdstringThe ID to assign to the new index. This is restricted to alphanumeric with dashes and underscores. All values will be converted to lower-case.
Returns
Exceptions
- TxException
Thrown when an API error occurs
DeleteDocument(string, string)
Delete an existing document from an index
Task<DeleteDocumentResponse> DeleteDocument(string indexId, string documentId)
Parameters
Returns
Exceptions
- TxException
Thrown when an API error occurs
DeleteIndex(string)
Delete an existing index. Note that this is a destructive action and cannot be undone. All the documents in this index will be deleted.
Task<DeleteIndexResponse> DeleteIndex(string indexId)
Parameters
indexIdstring
Returns
Exceptions
- TxException
Thrown when an API error occurs
DeleteMultipleDocuments(string, IEnumerable<string>)
Delete a group of existing documents from an index
Task<DeleteMultipleDocumentsResponse> DeleteMultipleDocuments(string indexId, IEnumerable<string> documentIds)
Parameters
indexIdstringThe index containing the documents
documentIdsIEnumerable<string>The IDs of the documents to delete
Returns
Exceptions
- TxException
Thrown when an API error occurs
GetAllIndexes()
Get all existing indexes
Task<GetAllIndexesResponse> GetAllIndexes()
Returns
Exceptions
- TxException
Thrown when an API error occurs
GetJob(string, string)
Retrieve an existing job from an index
Task<GetJobResponse> GetJob(string indexId, string documentId)
Parameters
Returns
Exceptions
- TxException
Thrown when an API error occurs
GetResume(string, string)
Retrieve an existing resume from an index
Task<GetResumeResponse> GetResume(string indexId, string documentId)
Parameters
Returns
Exceptions
- TxException
Thrown when an API error occurs
IndexDocument(ParsedJob, string, string, IEnumerable<string>)
Add a job to an existing index
Task<IndexDocumentResponse> IndexDocument(ParsedJob job, string indexId, string documentId, IEnumerable<string> userDefinedTags = null)
Parameters
jobParsedJobA job generated by the Job Parser
indexIdstringThe index the document should be added into (case-insensitive).
documentIdstringThe ID to assign to the new document. This is restricted to alphanumeric with dashes and underscores. All values will be converted to lower-case.
userDefinedTagsIEnumerable<string>The user-defined tags that the job should have
Returns
Exceptions
- TxException
Thrown when an API error occurs
IndexDocument(ParsedResume, string, string, IEnumerable<string>)
Add a resume to an existing index
Task<IndexDocumentResponse> IndexDocument(ParsedResume resume, string indexId, string documentId, IEnumerable<string> userDefinedTags = null)
Parameters
resumeParsedResumeA resume generated by the Resume Parser
indexIdstringThe index the document should be added into (case-insensitive).
documentIdstringThe ID to assign to the new document. This is restricted to alphanumeric with dashes and underscores. All values will be converted to lower-case.
userDefinedTagsIEnumerable<string>The user-defined tags that the resume should have
Returns
Exceptions
- TxException
Thrown when an API error occurs
IndexMultipleDocuments(IEnumerable<IndexJobInfo>, string)
Add several jobs to an existing index
Task<IndexMultipleDocumentsResponse> IndexMultipleDocuments(IEnumerable<IndexJobInfo> jobs, string indexId)
Parameters
jobsIEnumerable<IndexJobInfo>The jobs generated by the Job Parser paired with their DocumentIds
indexIdstringThe index the jobs should be added into (case-insensitive).
Returns
Exceptions
- TxException
Thrown when an API error occurs
IndexMultipleDocuments(IEnumerable<IndexResumeInfo>, string)
Add several resumes to an existing index
Task<IndexMultipleDocumentsResponse> IndexMultipleDocuments(IEnumerable<IndexResumeInfo> resumes, string indexId)
Parameters
resumesIEnumerable<IndexResumeInfo>The resumes generated by the Resume Parser paired with their DocumentIds
indexIdstringThe index the resumes should be added into (case-insensitive).
Returns
Exceptions
- TxException
Thrown when an API error occurs
Match(string, string, IEnumerable<string>, CategoryWeights, FilterCriteria, SearchMatchSettings, int)
Find matches for a resume or job that is already indexed
Task<MatchResponse> Match(string indexId, string documentId, IEnumerable<string> indexesToQuery, CategoryWeights preferredWeights = null, FilterCriteria filters = null, SearchMatchSettings settings = null, int numResults = 0)
Parameters
indexIdstringThe index containing the document you want to match
documentIdstringThe ID of the document to match
indexesToQueryIEnumerable<string>The indexes to find results in. These must all be of the same type (resumes or jobs)
preferredWeightsCategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source resume/job
filtersFilterCriteriaAny filters to apply prior to the match (a result must satisfy all the filters)
settingsSearchMatchSettingsSettings for this match
numResultsintThe number of results to show. If not specified, the default will be used.
Returns
Exceptions
- TxException
Thrown when an API error occurs
Match(ParsedJob, IEnumerable<string>, CategoryWeights, FilterCriteria, SearchMatchSettings, int)
Find matches for a non-indexed job.
Task<MatchResponse> Match(ParsedJob job, IEnumerable<string> indexesToQuery, CategoryWeights preferredWeights = null, FilterCriteria filters = null, SearchMatchSettings settings = null, int numResults = 0)
Parameters
jobParsedJobThe job (generated by the Job Parser) to use as the source for a match query
indexesToQueryIEnumerable<string>The indexes to find results in. These must all be of the same type (resumes or jobs)
preferredWeightsCategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source job
filtersFilterCriteriaAny filters to apply prior to the match (a result must satisfy all the filters)
settingsSearchMatchSettingsSettings for this match
numResultsintThe number of results to show. If not specified, the default will be used.
Returns
Exceptions
- TxException
Thrown when an API error occurs
Match(ParsedResume, IEnumerable<string>, CategoryWeights, FilterCriteria, SearchMatchSettings, int)
Find matches for a non-indexed resume.
Task<MatchResponse> Match(ParsedResume resume, IEnumerable<string> indexesToQuery, CategoryWeights preferredWeights = null, FilterCriteria filters = null, SearchMatchSettings settings = null, int numResults = 0)
Parameters
resumeParsedResumeThe resume (generated by the Resume Parser) to use as the source for a match query
indexesToQueryIEnumerable<string>The indexes to find results in. These must all be of the same type (resumes or jobs)
preferredWeightsCategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source resume
filtersFilterCriteriaAny filters to apply prior to the match (a result must satisfy all the filters)
settingsSearchMatchSettingsSettings for this match
numResultsintThe number of results to show. If not specified, the default will be used.
Returns
Exceptions
- TxException
Thrown when an API error occurs
Search(IEnumerable<string>, FilterCriteria, SearchMatchSettings, PaginationSettings)
Search for resumes or jobs that meet specific criteria
Task<SearchResponse> Search(IEnumerable<string> indexesToQuery, FilterCriteria query, SearchMatchSettings settings = null, PaginationSettings pagination = null)
Parameters
indexesToQueryIEnumerable<string>The indexes to find results in. These must all be of the same type (resumes or jobs)
queryFilterCriteriaThe search query. A result must satisfy all of these criteria
settingsSearchMatchSettingsThe settings for this search request
paginationPaginationSettingsPagination settings. If not specified the default will be used
Returns
Exceptions
- TxException
Thrown when an API error occurs
UpdateJobUserDefinedTags(string, string, IEnumerable<string>, UserDefinedTagsMethod)
Updates the user-defined tags for a job
Task<UpdateUserDefinedTagsResponse> UpdateJobUserDefinedTags(string indexId, string documentId, IEnumerable<string> userDefinedTags, UserDefinedTagsMethod method)
Parameters
indexIdstringThe index containing the job
documentIdstringThe ID of the job to update
userDefinedTagsIEnumerable<string>The user-defined tags to add/delete/etc
methodUserDefinedTagsMethodWhich method to use for the specified user-defined tags
Returns
Exceptions
- TxException
Thrown when an API error occurs
UpdateResumeUserDefinedTags(string, string, IEnumerable<string>, UserDefinedTagsMethod)
Updates the user-defined tags for a resume
Task<UpdateUserDefinedTagsResponse> UpdateResumeUserDefinedTags(string indexId, string documentId, IEnumerable<string> userDefinedTags, UserDefinedTagsMethod method)
Parameters
indexIdstringThe index containing the resume
documentIdstringThe ID of the resume to update
userDefinedTagsIEnumerable<string>The user-defined tags to add/delete/etc
methodUserDefinedTagsMethodWhich method to use for the specified user-defined tags
Returns
Exceptions
- TxException
Thrown when an API error occurs