text: Title: Add a method to check if a document is already index
  Body: # Context
  
  We should add a method in `BaseDocIndex` to check if a document is already indexed in the database.
  In short what it would do is to check the `id` of the given document and check if it already exist in the database.