The most commonly used part of the dill plant for pickling is the seed. The dill seed has a flavor that is similar to caraway and is often used as a spice. The leaves of the dill plant can also be used for pickling, but they have a more mild flavor.