many metadata is stored on document level.
If we search documents with the API eg 
" 
/api/dynamic_search/advanced/documents.Document/?_match_all=on&metadata__metadata_type__name=MY_ID&metadata__value=ABC"
it returns a result array without the metadata like below
Then for every document we need an extra api call to the metadata, so if a 
user has 100 documents, it is 101 calls !
So please add an option to include document metadata in the search result
Funny enough this is already done in the UI page where the html contains 
the docs + the metadata, 
but it is not in the API




{
            "date_added": "2017-11-02T08:02:57.780256Z",
            "description": "a=2\r\nc=3",
            "document_type": {
                "delete_time_period": 30,
                "delete_time_unit": "days",
                "documents_url": 
"http://foo/api/documents/document_types/2/documents/";,
                "documents_count": 3,
                "id": 2,
                "label": "TENANT1",
                "filenames": [],
                "trash_time_period": null,
                "trash_time_unit": null,
                "url": "http://foo/api/documents/document_types/2/";
            },
            "id": 616,
            "label": "TENANT1_pic1.jpg",
            "language": "eng",
            "latest_version": {
                "checksum": 
"03d260429ecee6f41d8e81e04624eea1488214471faf70d04159f6cd12bf23ad",
                "comment": "",
                "document_url": "http://foo/api/documents/documents/616/";,
                "download_url": 
"http://foo/api/documents/documents/616/versions/822/download/";,
                "encoding": "binary",
                "file": "315ea5b3-1245-4463-8eb0-424828e764fa",
                "mimetype": "image/jpeg",
                "pages_url": 
"http://foo/api/documents/documents/616/versions/822/pages/";,
                "size": "549106",
                "timestamp": "2017-11-02T08:02:59.469354Z",
                "url": 
"http://foo/api/documents/documents/616/versions/822/";
            },
            "url": "http://foo/api/documents/documents/616/";,
            "uuid": "764cd3f4-c8ae-408b-91f2-6066b8a80e0c",
            "versions_url": 
"http://foo/api/documents/documents/616/versions/";
        }

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mayan-edms+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to