Put the coconut, coriander, onion or shallot, ginger, garlic, chillies and lemon juice in a food processor. Blend, adding 4 tbsp water as needed to get a thick, coarse paste. You may, if you wish, put this mixture into the container of an electric blender in several batches to get a much finer paste, adding a little water if needed.
Put the coriander seeds, cloves and cinnamon into a clean coffee grinder and grind them to a fine powder. Mix the powder with the coconut mixture. Add the salt and sugar. Stir to mix and taste for the blend of sweet and sour. Cover and refrigerate until needed.
The chutney lasts 24-36 hours. It may also be frozen.