public class SearchMatchService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ApiEndpoints |
_endpoints |
protected EnvironmentSettings |
_settings |
| Constructor and Description |
|---|
SearchMatchService(okhttp3.OkHttpClient httpClient,
EnvironmentSettings settings)
Do not use this.
|
| Modifier and Type | Method and Description |
|---|---|
<TTarget extends IParsedDocWithId> |
bimetricScore(ParsedJobWithId sourceJob,
List<TTarget> targetDocuments,
CategoryWeights preferredWeights,
SearchMatchSettings settings)
Score one or more target documents against a source job
|
<TTarget extends IParsedDocWithId> |
bimetricScore(ParsedResumeWithId sourceResume,
List<TTarget> targetDocuments,
CategoryWeights preferredWeights,
SearchMatchSettings settings)
Score one or more target documents against a source resume
|
CreateIndexResponse |
createIndex(IndexType type,
String indexId)
Create a new index
|
protected okhttp3.RequestBody |
createJsonBody(Object body) |
DeleteDocumentResponse |
deleteDocument(String indexId,
String documentId)
Delete an existing document from an index
|
DeleteIndexResponse |
deleteIndex(String indexId)
Delete an existing index.
|
DeleteMultipleDocumentsResponse |
deleteMultipleDocuments(String indexId,
List<String> documentIds)
Delete a group of existing documents from an index
|
protected <T extends ApiResponse<?>> |
executeRequest(okhttp3.Request apiRequest,
Class<T> classOfT,
String requestBody) |
GetAllIndexesResponse |
getAllIndexes()
Get all existing indexes
|
GetJobResponse |
getJob(String indexId,
String documentId)
Retrieve an existing job from an index
|
GetResumeResponse |
getResume(String indexId,
String documentId)
Retrieve an existing resume from an index
|
IndexDocumentResponse |
indexDocument(ParsedJob job,
String indexId,
String documentId,
List<String> userDefinedTags)
Add a job to an existing index
|
IndexDocumentResponse |
indexDocument(ParsedResume resume,
String indexId,
String documentId,
List<String> userDefinedTags)
Add a resume to an existing index
|
IndexMultipleDocumentsResponse |
indexMultipleJobs(List<IndexJobInfo> jobs,
String indexId)
Add several jobs to an existing index
|
IndexMultipleDocumentsResponse |
indexMultipleResumes(List<IndexResumeInfo> resumes,
String indexId)
Add several resumes to an existing index
|
MatchResponse |
match(ParsedJob job,
List<String> indexesToQuery,
CategoryWeights preferredWeights,
FilterCriteria filters,
SearchMatchSettings settings,
int numResults)
Find matches for a non-indexed job.
|
MatchResponse |
match(ParsedResume resume,
List<String> indexesToQuery,
CategoryWeights preferredWeights,
FilterCriteria filters,
SearchMatchSettings settings,
int numResults)
Find matches for a non-indexed resume.
|
MatchResponse |
match(String indexId,
String documentId,
List<String> indexesToQuery,
CategoryWeights preferredWeights,
FilterCriteria filters,
SearchMatchSettings settings,
int numResults)
Find matches for a resume or job that is already indexed
|
SearchResponse |
search(List<String> indexesToQuery,
FilterCriteria query,
SearchMatchSettings settings,
PaginationSettings pagination)
Search for resumes or jobs that meet specific criteria
|
protected void |
setEnvironment(IndexingOptionsGeneric options) |
UpdateUserDefinedTagsResponse |
updateJobUserDefinedTags(String indexId,
String documentId,
List<String> userDefinedTags,
UserDefinedTagsMethod method)
Updates the user-defined tags for a job
|
UpdateUserDefinedTagsResponse |
updateResumeUserDefinedTags(String indexId,
String documentId,
List<String> userDefinedTags,
UserDefinedTagsMethod method)
Updates the user-defined tags for a resume
|
protected final EnvironmentSettings _settings
protected final ApiEndpoints _endpoints
public SearchMatchService(okhttp3.OkHttpClient httpClient,
EnvironmentSettings settings)
TxClient.searchMatchV1()httpClient - The http client for API callssettings - environment settingspublic CreateIndexResponse createIndex(IndexType type, String indexId) throws TxException
type - The type of documents stored in this index. Either 'Resume' or 'Job'indexId - The ID to assign to the new index. This is restricted to alphanumeric with dashes
and underscores. All values will be converted to lower-case.TxException - Thrown when an API error occurspublic GetAllIndexesResponse getAllIndexes() throws TxException
TxException - Thrown when an API error occurspublic DeleteIndexResponse deleteIndex(String indexId) throws TxException
indexId - The index to delete (case-insensitive).TxException - Thrown when an API error occurspublic IndexDocumentResponse indexDocument(ParsedResume resume, String indexId, String documentId, List<String> userDefinedTags) throws TxException
resume - A resume generated by the Resume ParserindexId - The index the document should be added into (case-insensitive).documentId - The 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 - The user-defined tags that the resume should have, or nullTxException - Thrown when an API error occurspublic IndexDocumentResponse indexDocument(ParsedJob job, String indexId, String documentId, List<String> userDefinedTags) throws TxException
job - A job generated by the Job ParserindexId - The index the document should be added into (case-insensitive).documentId - The 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 - The user-defined tags that the resume should have, or nullTxException - Thrown when an API error occurspublic IndexMultipleDocumentsResponse indexMultipleResumes(List<IndexResumeInfo> resumes, String indexId) throws TxException
resumes - The resumes generated by the Resume Parser paired with their DocumentIdsindexId - The index the documents should be added into (case-insensitive).TxException - Thrown when an API error occurspublic IndexMultipleDocumentsResponse indexMultipleJobs(List<IndexJobInfo> jobs, String indexId) throws TxException
jobs - The jobs generated by the Job Parser paired with their DocumentIdsindexId - The index the documents should be added into (case-insensitive).TxException - Thrown when an API error occurspublic DeleteDocumentResponse deleteDocument(String indexId, String documentId) throws TxException
indexId - The index containing the documentdocumentId - The ID of the document to deleteTxException - Thrown when an API error occurspublic DeleteMultipleDocumentsResponse deleteMultipleDocuments(String indexId, List<String> documentIds) throws TxException
indexId - The index containing the documentsdocumentIds - The IDs of the documents to deleteTxException - Thrown when an API error occurspublic GetResumeResponse getResume(String indexId, String documentId) throws TxException
indexId - The index containing the resumedocumentId - The ID of the resume to retrieveTxException - Thrown when an API error occurspublic GetJobResponse getJob(String indexId, String documentId) throws TxException
indexId - The index containing the jobdocumentId - The ID of the job to retrieveTxException - Thrown when an API error occurspublic UpdateUserDefinedTagsResponse updateResumeUserDefinedTags(String indexId, String documentId, List<String> userDefinedTags, UserDefinedTagsMethod method) throws TxException
indexId - The index containing the resumedocumentId - The ID of the resume to updateuserDefinedTags - The user-defined tags to add/delete/etcmethod - Which method to use for the specified user-defined tagsTxException - Thrown when an API error occurspublic UpdateUserDefinedTagsResponse updateJobUserDefinedTags(String indexId, String documentId, List<String> userDefinedTags, UserDefinedTagsMethod method) throws TxException
indexId - The index containing the jobdocumentId - The ID of the job to updateuserDefinedTags - The user-defined tags to add/delete/etcmethod - Which method to use for the specified user-defined tagsTxException - Thrown when an API error occurspublic MatchResponse match(ParsedResume resume, List<String> indexesToQuery, CategoryWeights preferredWeights, FilterCriteria filters, SearchMatchSettings settings, int numResults) throws TxException
resume - The resume (generated by the Resume Parser) to use as the source for a match queryindexesToQuery - The indexes to find results in. These must all be of the same type (resumes or jobs)preferredWeights - The preferred category weights for scoring the results. If null,
The best values will be determined based on the source resumefilters - Any filters to apply prior to the match (a result must satisfy all the filters), or nullsettings - The settings for this match request. Use null for defaults.numResults - The number of results to show. Use 0 for the default.TxException - Thrown when an API error occurspublic MatchResponse match(ParsedJob job, List<String> indexesToQuery, CategoryWeights preferredWeights, FilterCriteria filters, SearchMatchSettings settings, int numResults) throws TxException
job - The job (generated by the Job Parser) to use as the source for a match queryindexesToQuery - The indexes to find results in. These must all be of the same type (resumes or jobs)preferredWeights - The preferred category weights for scoring the results. If null,
The best values will be determined based on the source jobfilters - Any filters to apply prior to the match (a result must satisfy all the filters), or nullsettings - The settings for this match request. Use null for defaults.numResults - The number of results to show. Use 0 for the default.TxException - Thrown when an API error occurspublic MatchResponse match(String indexId, String documentId, List<String> indexesToQuery, CategoryWeights preferredWeights, FilterCriteria filters, SearchMatchSettings settings, int numResults) throws TxException
indexId - The index containing the document you want to matchdocumentId - The ID of the document to matchindexesToQuery - The indexes to find results in. These must all be of the same type (resumes or jobs)preferredWeights - The preferred category weights for scoring the results. If null,
The best values will be determined based on the source resume/jobfilters - Any filters to apply prior to the match (a result must satisfy all the filters), or nullsettings - The settings for this match request. Use null for defaults.numResults - The number of results to show. Use 0 for the default.TxException - Thrown when an API error occurspublic SearchResponse search(List<String> indexesToQuery, FilterCriteria query, SearchMatchSettings settings, PaginationSettings pagination) throws TxException
indexesToQuery - The indexes to find results in. These must all be of the same type (resumes or jobs)query - The search query. A result must satisfy all of these criteriasettings - The settings for this search request. Use null for defaults.pagination - Pagination settings. Use null for defaults.TxException - Thrown when an API error occurspublic <TTarget extends IParsedDocWithId> BimetricScoreResponse bimetricScore(ParsedResumeWithId sourceResume, List<TTarget> targetDocuments, CategoryWeights preferredWeights, SearchMatchSettings settings) throws TxException
TTarget - Either ParsedResumeWithId or ParsedJobWithIdsourceResume - The source resumetargetDocuments - The target resumes/jobspreferredWeights - The preferred category weights for scoring the results. If null,
The best values will be determined based on the source resume.settings - The settings for this search request. Use null for defaults.TxException - Thrown when an API error occurspublic <TTarget extends IParsedDocWithId> BimetricScoreResponse bimetricScore(ParsedJobWithId sourceJob, List<TTarget> targetDocuments, CategoryWeights preferredWeights, SearchMatchSettings settings) throws TxException
TTarget - Either ParsedResumeWithId or ParsedJobWithIdsourceJob - The source jobtargetDocuments - The target resumes/jobspreferredWeights - The preferred category weights for scoring the results. If null,
The best values will be determined based on the source job.settings - The settings for this search request. Use null for defaults.TxException - Thrown when an API error occursprotected void setEnvironment(IndexingOptionsGeneric options)
protected okhttp3.RequestBody createJsonBody(Object body)
protected <T extends ApiResponse<?>> HttpResponse<T> executeRequest(okhttp3.Request apiRequest, Class<T> classOfT, String requestBody) throws TxException
TxExceptionCopyright © 2025. All rights reserved.