Melt the butter in a large pot over medium-high heat. Add the onion, carrot and celery and saute until soft (5 minutes). Add ginger, garlic, chili and apple and sauté for 1 minute.
Add tomatoes, spices, lentils and stock and stir until combined and bring to a simmer uncovered for 30 minutes.
Puree about 75% of the ingredients using either an immersion blender or by transferring a portion of the contents to the bowl of a standard blender. Leave some of the chunks whole, as it adds a nice texture and consistency to the soup. Return the soup to the pot if needed, then stir in the coconut milk. Taste, and adjust salt and black pepper as needed.
Serve topped with cashew and spring onion along with rice.