Use the primary key as a document ID in the search index, as the slug
can be changed causing problems with duplicates.