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
sourceJob
ParsedJobWithIdThe source job
targetDocuments
List<TTarget>The target resumes/jobs
preferredWeights
CategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source job
settings
SearchMatchSettingsSettings to be used for this scoring request
Returns
Type Parameters
TTarget
Either 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
sourceResume
ParsedResumeWithIdThe source resume
targetDocuments
List<TTarget>The target resumes/jobs
preferredWeights
CategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source resume
settings
SearchMatchSettingsSettings to be used for this scoring request
Returns
Type Parameters
TTarget
Either 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
type
IndexTypeThe type of documents stored in this index. Either 'Resume' or 'Job'
indexId
stringThe 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
indexId
string
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
indexId
stringThe index containing the documents
documentIds
IEnumerable<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
job
ParsedJobA job generated by the Job Parser
indexId
stringThe index the document should be added into (case-insensitive).
documentId
stringThe ID to assign to the new document. This is restricted to alphanumeric with dashes and underscores. All values will be converted to lower-case.
userDefinedTags
IEnumerable<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
resume
ParsedResumeA resume generated by the Resume Parser
indexId
stringThe index the document should be added into (case-insensitive).
documentId
stringThe ID to assign to the new document. This is restricted to alphanumeric with dashes and underscores. All values will be converted to lower-case.
userDefinedTags
IEnumerable<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
jobs
IEnumerable<IndexJobInfo>The jobs generated by the Job Parser paired with their DocumentIds
indexId
stringThe 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
resumes
IEnumerable<IndexResumeInfo>The resumes generated by the Resume Parser paired with their DocumentIds
indexId
stringThe 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
indexId
stringThe index containing the document you want to match
documentId
stringThe ID of the document to match
indexesToQuery
IEnumerable<string>The indexes to find results in. These must all be of the same type (resumes or jobs)
preferredWeights
CategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source resume/job
filters
FilterCriteriaAny filters to apply prior to the match (a result must satisfy all the filters)
settings
SearchMatchSettingsSettings for this match
numResults
intThe 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
job
ParsedJobThe job (generated by the Job Parser) to use as the source for a match query
indexesToQuery
IEnumerable<string>The indexes to find results in. These must all be of the same type (resumes or jobs)
preferredWeights
CategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source job
filters
FilterCriteriaAny filters to apply prior to the match (a result must satisfy all the filters)
settings
SearchMatchSettingsSettings for this match
numResults
intThe 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
resume
ParsedResumeThe resume (generated by the Resume Parser) to use as the source for a match query
indexesToQuery
IEnumerable<string>The indexes to find results in. These must all be of the same type (resumes or jobs)
preferredWeights
CategoryWeightsThe preferred category weights for scoring the results. If none are provided, The best values will be determined based on the source resume
filters
FilterCriteriaAny filters to apply prior to the match (a result must satisfy all the filters)
settings
SearchMatchSettingsSettings for this match
numResults
intThe 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
indexesToQuery
IEnumerable<string>The indexes to find results in. These must all be of the same type (resumes or jobs)
query
FilterCriteriaThe search query. A result must satisfy all of these criteria
settings
SearchMatchSettingsThe settings for this search request
pagination
PaginationSettingsPagination 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
indexId
stringThe index containing the job
documentId
stringThe ID of the job to update
userDefinedTags
IEnumerable<string>The user-defined tags to add/delete/etc
method
UserDefinedTagsMethodWhich 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
indexId
stringThe index containing the resume
documentId
stringThe ID of the resume to update
userDefinedTags
IEnumerable<string>The user-defined tags to add/delete/etc
method
UserDefinedTagsMethodWhich method to use for the specified user-defined tags
Returns
Exceptions
- TxException
Thrown when an API error occurs