search and document api:s implemented