Initial code to search and register documents that were added locally, on the server.