How to Make It
Heat oil in a medium saucepan over medium. Add shallots, and cook, stirring occasionally, until softened, 2 to 3 minutes. Add garlic; cook, stirring constantly, until fragrant, about 30 seconds. Add pears, brown sugar, vinegar, mustard seeds, salt, cloves, and allspice. Bring to a boil. Cover and reduce heat to medium-low; simmer 10 minutes.
Uncover and increase heat to medium. Cook, stirring occasionally, until fruit breaks down and mixture is very thick, 20 to 25 minutes.
Remove chutney from heat. Remove and discard cloves and allspice. Stir in olives, walnuts, and raisins. Serve warm or at room temperature.