To manage jobs over time and distinguish between active and inactive jobs, RChilli’s Search and Match API provides a powerful way to filter jobs based on their indexing time. Each indexed document, including jobs, carries a timestamp that marks the time when it was added to the system.
Steps to Manage Jobs Over Time:
-
Indexed Document Timestamps:
- Every job indexed in the system is associated with a timestamp. This timestamp indicates when the job was added to the system, which is crucial for determining whether the job is active or inactive.
- Every job indexed in the system is associated with a timestamp. This timestamp indicates when the job was added to the system, which is crucial for determining whether the job is active or inactive.
-
Using the DateRange Filter:
- To filter jobs based on their indexing time, you can use the DateRange filter within the Search and Match API.
- This allows you to specify a time range and fetch jobs indexed within that period. For example, you can filter out jobs that were indexed more than a certain number of days ago to identify inactive jobs or find recently indexed jobs that are active.
-
Active vs. Inactive Jobs:
- Active Jobs: These are jobs that have been indexed within a recent time range and are still relevant for search and matching.
-
Inactive Jobs: These are older jobs that might have passed their relevance period or are no longer valid. By using the DateRange filter, you can exclude or manage these jobs effectively.
-
DateRange Filter Example:
- To filter jobs within a specific time frame, the DateRange filter allows you to define a start date and an end date. For instance:
- Start Date: January 1st, 2025
-
End Date: May 14th, 2025
- This query would return all jobs indexed between these dates, allowing you to focus on the active jobs that are relevant for the current period.
- Date format should be in ‘yyyy-MM-dd’
- To filter jobs within a specific time frame, the DateRange filter allows you to define a start date and an end date. For instance:
For more details on how to implement this and further explore the filtering capabilities, refer to the Search and Match Overview.
Comments
0 comments
Please sign in to leave a comment.