Chop cranberries, celery, and walnuts lightly in a food processor. Mix gelatin, water, and sugar. Combine cranberry mixture, gelatin mixture, and pineapple (with juice) and mix thoroughly. Pour into mold and refrigerate to set. Serve on leaf of lettuce with a dollop of mayonnaise.