Place the baking sheets with the unbaked cookies in the refrigerator for 10 to 15 minutes to chill the dough which prevents the cookies from spreading and losing their shape while baking.

Soak anise seeds in boiling-hot water until most of water is absorbed, about 15 minutes.
Whisk together flour, baking soda, and salt in a bowl.
Beat together butter and sugar in a large bowl with an electric mixer at medium-high speed until pale and fluffy, about 2 minutes in a stand mixer (preferably fitted with paddle attachment) or 4 minutes with a handheld. Beat in the egg and anise seeds with any remaining soaking liquid until combined. Reduce speed to low, then mix in flour mixture until just combined.
Divide dough into 4 balls and flatten each into a 4-inch disk. Chill disks, wrapped in plastic wrap, until firm, about 3 hours.
Put oven racks in upper and lower thirds of oven and preheat oven to 350°F/ 180C.
While oven preheats, roll out 1 piece of dough (keep remaining dough chilled) on a well-floured surface with a well-floured rolling pin into a 7-inch round (slightly less than 1/4 inch thick; if dough becomes too soft to roll out, chill on a baking sheet until firm). Cut out as many cookies as possible from dough with cutter and transfer to 2 ungreased large baking sheets, arranging cookies about 1 inch apart.
Bake cookies, switching position of sheets halfway through baking, until bottoms are golden, 10 to 12 minutes total, then transfer with a metal spatula to racks to cool completely.
Gather scraps and chill until firm enough to reroll. Make more cookies with remaining dough, scraps (reroll only once).
When completely cooled, use a tiny bit of a jam of your choice to sandwich the cookies together. Refrigerate to set.


