Toast and grind hazelnuts. Preheat oven to 350ºF. Spread hazelnuts in single layer on a baking sheet. Toast in oven until fragrant, about 5 to 10 minutes (8 minutes did it for us). Transfer to a pie plate or other dish where they can cool quickly, in a single level. When nuts are totally cooled, grind in a food processor, using short bursts; if the nuts overheat, they can grind into a paste. After several short bursts, We let them sit as we worked on the dough, occasionally give them quick blasts until they were finely ground into uniform particles. Don’t go crazy with the grinding—you want ground nuts, not powder. Leave ground hazelnuts in processor bowl.
Make the cookie dough. Cream softened butter and sugar in a large bowl with an electric beater. Beat in egg and salt. Using a low speed on the mixer, gradually incorporate flour, occasionally scraping down the bowl sides to make sure it combines evenly with the butter/sugar mixture. Sprinkle chopped rosemary over hazelnuts in food processor and pulse a few times to incorporate it evenly in the ground nuts. Gradually add to butter/sugar/flour mixture, again using a low speed on your mixer. Cover bowl with plastic wrap and refrigerate dough for 2 hours or overnight (the more firm and chilled it becomes, the easier it is to form the cookies).
Bake the cookies. Preheat oven to 375ºF. Roll dough into 1-inch balls, about 1 level tablespoon of dough per cookie. Arrange a dozen of them on a sheet of parchment paper that fits your cookie sheet. Slightly flatten balls with the palm of your hand—they will spread more during baking, so don’t squash them. Slide the parchment paper sheet onto cookie sheet and bake until the cookies are lightly golden, about 8 to 12 minutes (10-1/2 minutes proved just right in our oven). While they’re baking, prepare another dozen on a fresh sheet of parchment paper. Also, slightly warm the jam—see Kitchen Notes for how and why.
When the first batch is done, slide the baked-cookie-laden parchment paper off the cookie sheet and onto a table or countertop. Slide the raw-cookie-dough-laden parchment sheet onto the cookie sheet and pop it into the oven. (Marion found this excellent tip somewhere. It’s not only easier than transfering still soft cookies from a hot cookie sheet and safer than trying to flatten cookie dough balls on said hot sheet—if the raw cookies sit on the hot sheet for too long before going into the oven, they tend to spread out too much, literally melting.)
While cookies are still warm, press indentations into the tops. One suggestion was the rounded end of a wooden spoon. Sticking with the thumbprint tradition, We used gingerly touches with various digits so my thumbs didn’t take all the heat. It gave us better control over the shape of the dents (a little full disclosure here, it also gave us one or two temporarily tender fingertips—we can hear professional line cooks groaning and cursing now). Spoon a half-teaspoon or so of warmed jam into each cookie. Let cookies cool slightly, then transfer to plates.