Skip to main content
Dessert

Nut Filling

A thickened milk and egg filling flavored with vanilla, sugar, salt, walnuts, and raisins for layering in cake.

From an old cookbook · modernised transcription
Jump to recipe ↓

Why it works: Vanilla and milk are a kitchen classic. They rank in the top 5% of all ingredient pairs, and cooks put them together in 19,187 recipes. Both carry ethyl caproate, which smells fruity, apple peel. The science ↓

Nut Filling

Ingredients

Directions

Make the filling

  1. In a saucepan, combine milk, egg, sugar, and salt.

  2. Cook over medium heat until thickened, stirring constantly.

  3. Once thickened, remove from heat. Let it cool.

Finish and fill

  1. Stir in vanilla, walnuts, and raisins.

  2. Spread the filling between layers of cake.

Recipe from a historical cookbook (Internet Archive).

Transcribed from a scanned cookbook and modernised for today's kitchens. Where the book gave no heat or time, or said "a moderate oven", the temperatures and times here may be modern equivalents rather than the book's own figures.

Explore the science

The flavor team

The pairs that carry this dish. Each one is judged two ways: how much their aromas overlap, and how often cooks already put them together.

  1. Vanilla + milktop 5% of all pairs
    Smell alikemoderate
    Cooked together19,187 recipes

    Shared aroma: ethyl caproate (fruity, apple peel).

  2. Sugar + vanillatop 8% of all pairs
    Smell alikelow
    Cooked together35,032 recipes

    Shared aroma: beta-damascenone (apple, rose).

  3. Walnut + vanillatop 10% of all pairs
    Smell alikestrong
    Cooked together2,730 recipes

    Shared aroma: eucalyptol (eucalyptus, herbal).

  4. Raisin + vanillatop 12% of all pairs
    Smell alikemoderate
    Cooked together782 recipes

    Shared aroma: beta-damascenone (apple, rose).

  5. Raisin + walnuttop 13% of all pairs
    Smell alikemoderate
    Cooked together647 recipes

    Shared aroma: 1-octen-3-ol (mushroom, earthy).

Sugar and vanilla barely smell alike, yet cooks put them together in 35,032 recipes: they work on texture and structure more than aroma.

Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs

What each ingredient does

Egg
Thickens the milk into a custard as it heats and helps bind the filling.
Milk
Forms the liquid base of the custard, which sets as the egg thickens it.
Sugar
Adds sweetness and balances the savoriness of the salt and nuts.
Walnuts
Add crunch and a contrasting texture to the smooth custard.
Raisins
Add chewy texture and concentrated sweetness.
Vanilla
Adds aroma that rounds out the sweet custard flavor.

The step that matters

Cook the custard over medium heat, stirring constantly. Egg proteins thicken the milk as they heat, but if the mixture gets too hot or sits still, the egg can scramble and curdle, leaving a grainy filling. Constant stirring spreads heat evenly and keeps it smooth.

Swap the walnut

How well each one fits the dish's main ingredients (raisin, sugar, vanilla, milk, egg):

  1. Almondfits better
  2. Chestnutfits better
  3. Cocoafits about as well
  4. Walnutthe original

Fit is the average pairing score against raisin, sugar, vanilla, milk, egg. Candidates are from the same food group and used in at least 100 recipes.

“What each ingredient does” and “The step that matters” were written by Claude from this recipe’s own method and reviewed in samples by CompKitchen.

More nut filling recipes

You might also like