For some purposes (e.g. search similar feature) it may
be useful to store the links in a given document in the
database, e.g. as a list of DocIDs.
Slightly more difficult would be to store the list of
all backlinks to a document. (More difficult because
the document record would periodically need to be
updated during indexing.)