Dynamicweb 9 features a lightning fast generalized search framework usually referred to as New Indexing, which can be used to index and search through all kinds of data on your solution – products, content, users, etc.
Broadly speaking, New Indexing consists of the following elements:
- Indexes – which are data structures optimized for data retrieval
- Queries – which are used to retrieve data based on criteria you define
- Facets – which are used to create filters in frontend
- Tasks – which are used to rebuild indexes at an interval
This article will tell you more about Tasks - which are scheduled activities that rebuild your indexes at predefined intervals.
To create a task:
- Click Add Task in the repository toolbar
- Provide a name
- Click OK
This opens the Task configuration view (Figure 2.1).
To configure the task:
- Select a start time and optionally an end time
- Select the interval with which you want to run the task – please keep in mind that rebuilding indexes can be resource demanding
- Select a task provider (we supply one out of the box, the IndexBuilderTaskProvider, but you can create your own)
- Configure the parameters supplied by the task provider – by default:
- Select an Index to rebuild
- Select a Build configuration to use
Please note: The tasks created here depend on an autogenerated scheduled task called Repository Task Handler executing them. If your tasks are not executed in a timely manner, it may be because the Repository Task Hander is set to run at an interval longer than the intervals on the repository tasks.