Matterial API Object - SearchResult<Document>

com.matterial.mtr.api.object.SearchResult

Java

SearchResult

SearchResultEntry

JSON

{
  "totalHits": 1,
  "results": [
    {
      "type": "document",
      "id": "12",
      "source": {
        "partialUpdateFollowers": false,
        "partialUpdateMarkedHelpfulBy": false,
        "partialUpdateFirstReadTime": false,
        "partialUpdateCategories": false,
        "partialUpdateSnapFlag": false,
        "id": 3,
        "editorType": 0,
        "createTimeInSeconds": 1529680529,
        "clickCount": 0,
        "valid": true,
        "validBeginInSeconds": null,
        "validEndInSeconds": null,
        "removed": false,
        "archived": false,
        "archivedBeginInSeconds": null,
        "reviewUntilInSeconds": null,
        "removeTimeInSeconds": null,
        "downloadCount": 0,
        "template": false,
        "languageVersionId": 12,
        "languageVersionVersion": 2,
        "languageVersionTitle": "Link Test",
        "languageVersionAbstract": "Testing links",
        "languageVersionVersionComment": null,
        "languageVersionStatus": 2,
        "languageVersionCurrentlyInProcessing": true,
        "languageVersionReady": false,
        "languageVersionReviewed": false,
        "languageVersionReviewRequested": false,
        "languageVersionNotifyOnReview": false,
        "languageVersionCasId": null,
        "languageVersionCasIdPdf": null,
        "languageVersionCasIdThumbnail": null,
        "languageVersionCasMd5": null,
        "languageVersionFileSize": null,
        "languageVersionFileSizePdf": null,
        "languageVersionFileSizeThumbnail": null,
        "languageVersionCreateTimeInSeconds": 1531839442,
        "languageVersionLastChangeInSeconds": 1531914720,
        "languageVersionValidBeginInSeconds": null,
        "languageVersionValidEndInSeconds": null,
        "languageVersionMimeType": "text/markdown",
        "languageVersionLanguageId": 1,
        "languageVersionLanguageKey": "de",
        "successorId": null,
        "firstReadTimesInSeconds": {
          "1": 1531846643,
          "2": 1531921909
        },
        "lastReadTimeInSeconds": null,
        "lastWriteTimesInSeconds": {
          "1": 1531846642,
          "2": 1531921920
        },
        "lastWriteTimeInSeconds": null,
        "roleRelationType": 0,
        "sumRating": null,
        "reviewRight": false,
        "mentionedInCommentUnread": false,
        "snap": false,
        "categoryIds": [
          7
        ],
        "relatedDocumentIds": [],
        "roleRights": [
          {
            "role": {
              "id": 5,
              "clientId": 1,
              "entityTypeId": 22,
              "name": "Matterial",
              "description": null,
              "bitmask": 0,
              "notRemovable": false,
              "initiallyAssignedToAccount": false,
              "initiallyAssignedTypeToDocument": 0,
              "permissions": {
                "systemAccount": false,
                "bitmask": 0,
                "administrateAll": false,
                "editPerson": false,
                "editDocument": false,
                "editDocumentTemplate": false,
                "editRole": false,
                "editCategory": false,
                "editTask": false,
                "comment": false,
                "viewArchive": false,
                "viewStatistic": false,
                "showTrash": false,
                "editGallery": false,
                "immediateReview": false,
                "publishUnreviewed": false,
                "editAdditionalProperty": false,
                "editGlobalSavedSearch": false,
                "editCategoryTypeTag": false,
                "createSnap": false
              },
              "personalRolePerson": null,
              "jsonType": "Role"
            },
            "type": 2,
            "jsonType": "RoleRight"
          },
          {
            "role": {
              "id": 8,
              "clientId": 1,
              "entityTypeId": 24,
              "name": "PERSONAL ROLE [2|1]",
              "description": "PERSONAL ROLE",
              "bitmask": 0,
              "notRemovable": false,
              "initiallyAssignedToAccount": false,
              "initiallyAssignedTypeToDocument": 0,
              "permissions": {
                "systemAccount": false,
                "bitmask": 0,
                "administrateAll": false,
                "editPerson": false,
                "editDocument": false,
                "editDocumentTemplate": false,
                "editRole": false,
                "editCategory": false,
                "editTask": false,
                "comment": false,
                "viewArchive": false,
                "viewStatistic": false,
                "showTrash": false,
                "editGallery": false,
                "immediateReview": false,
                "publishUnreviewed": false,
                "editAdditionalProperty": false,
                "editGlobalSavedSearch": false,
                "editCategoryTypeTag": false,
                "createSnap": false
              },
              "personalRolePerson": null,
              "jsonType": "Role"
            },
            "type": 2,
            "jsonType": "RoleRight"
          },
          {
            "role": {
              "id": 7,
              "clientId": 1,
              "entityTypeId": 24,
              "name": "PERSONAL ROLE [1|1]",
              "description": "PERSONAL ROLE",
              "bitmask": 0,
              "notRemovable": false,
              "initiallyAssignedToAccount": false,
              "initiallyAssignedTypeToDocument": 0,
              "permissions": {
                "systemAccount": false,
                "bitmask": 0,
                "administrateAll": false,
                "editPerson": false,
                "editDocument": false,
                "editDocumentTemplate": false,
                "editRole": false,
                "editCategory": false,
                "editTask": false,
                "comment": false,
                "viewArchive": false,
                "viewStatistic": false,
                "showTrash": false,
                "editGallery": false,
                "immediateReview": false,
                "publishUnreviewed": false,
                "editAdditionalProperty": false,
                "editGlobalSavedSearch": false,
                "editCategoryTypeTag": false,
                "createSnap": false
              },
              "personalRolePerson": null,
              "jsonType": "Role"
            },
            "type": 2,
            "jsonType": "RoleRight"
          }
        ],
        "responsibles": [],
        "followers": [
          {
            "accountId": 2,
            "accountLogin": null,
            "superiorAccountId": null,
            "accountCreateTimeInSeconds": null,
            "accountLastLoginInSeconds": null,
            "instanceOwner": false,
            "demo": false,
            "contactId": 2,
            "firstName": null,
            "lastName": null,
            "position": null,
            "birthdayInSeconds": null,
            "gender": null,
            "contactImage": null,
            "rolePersonal": null,
            "roleClientGate": null,
            "rolesFunctional": [],
            "rolesContent": [],
            "rolesReview": [],
            "clients": [],
            "addresses": [],
            "communicationData": [],
            "contactImages": [],
            "id": 2,
            "jsonType": "Person"
          }
        ],
        "markedAsHelpfulBy": [],
        "attachments": [],
        "languageAttachments": [],
        "documentAttachments": [],
        "additionalProperties": [
          {
            "id": 1,
            "name": "Wichtig",
            "description": "Dokument taucht unter Aktuell & wichtig auf dem Dashboard auf",
            "propertyType": 1,
            "validBeginInSeconds": null,
            "validEndInSeconds": null,
            "jsonType": "AdditionalProperty"
          },
          {
            "id": 2,
            "name": "Dringend",
            "description": "Dokument wird Benutzern nach dem Login prominent angeboten, bis sie es gelesen haben",
            "propertyType": 2,
            "validBeginInSeconds": null,
            "validEndInSeconds": null,
            "jsonType": "AdditionalProperty"
          }
        ],
        "extensionValues": [],
        "partialUpdate": false,
        "jsonType": "Document"
      },
      "highlights": [
        {
          "indexField": "languageVersionTitle",
          "fragments": [
            "<em>Link</em> Test"
          ]
        }
      ],
      "score": 7.986,
      "jsonType": "SearchResultEntry"
    }
  ],
  "aggregations": [
    {
      "indexField": "categoryIds",
      "buckets": {
        "7": 1
      }
    }
  ]
}

XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<searchResult>
    <results
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:type="searchResultEntry">
        <jsonType>SearchResultEntry</jsonType>
        <highlights>
            <fragments>&lt;em&gt;Link&lt;/em&gt; Test</fragments>
            <indexField>languageVersionTitle</indexField>
        </highlights>
        <id>12</id>
        <score>7.986</score>
        <source xsi:type="document">
            <jsonType>Document</jsonType>
            <additionalProperties>
                <jsonType>AdditionalProperty</jsonType>
                <description>Dokument taucht unter Aktuell &amp; wichtig
                    auf dem Dashboard auf</description>
                <id>1</id>
                <name>Wichtig</name>
                <propertyType>1</propertyType>
            </additionalProperties>
            <additionalProperties>
                <jsonType>AdditionalProperty</jsonType>
                <description>Dokument wird Benutzern nach dem Login
                    prominent angeboten, bis sie es gelesen haben</description>
                <id>2</id>
                <name>Dringend</name>
                <propertyType>2</propertyType>
            </additionalProperties>
            <archived>false</archived>
            <categoryIds>7</categoryIds>
            <clickCount>0</clickCount>
            <createTimeInSeconds>1529680529</createTimeInSeconds>
            <downloadCount>0</downloadCount>
            <editorType>0</editorType>
            <firstReadTimesInSeconds>
                <entry>
                    <key>1</key>
                    <value>1531846643</value>
                </entry>
                <entry>
                    <key>2</key>
                    <value>1531921909</value>
                </entry>
            </firstReadTimesInSeconds>
            <followers>
                <jsonType>Person</jsonType>
                <accountId>2</accountId>
                <contactId>2</contactId>
                <id>2</id>
                <instanceOwner>false</instanceOwner>
                <demo>false</demo>
            </followers>
            <id>3</id>
            <languageVersionAbstract>Testing links</languageVersionAbstract>
            <languageVersionCreateTimeInSeconds>1531839442</languageVersionCreateTimeInSeconds>
            <languageVersionCurrentlyInProcessing>true</languageVersionCurrentlyInProcessing>
            <languageVersionId>12</languageVersionId>
            <languageVersionLanguageId>1</languageVersionLanguageId>
            <languageVersionLanguageKey>de</languageVersionLanguageKey>
            <languageVersionLastChangeInSeconds>1531914720</languageVersionLastChangeInSeconds>
            <languageVersionMimeType>text/markdown</languageVersionMimeType>
            <languageVersionNotifyOnReview>false</languageVersionNotifyOnReview>
            <languageVersionReady>false</languageVersionReady>
            <languageVersionReviewRequested>false</languageVersionReviewRequested>
            <languageVersionReviewed>false</languageVersionReviewed>
            <languageVersionStatus>2</languageVersionStatus>
            <languageVersionTitle>Link Test</languageVersionTitle>
            <languageVersionVersion>2</languageVersionVersion>
            <lastWriteTimesInSeconds>
                <entry>
                    <key>1</key>
                    <value>1531846642</value>
                </entry>
                <entry>
                    <key>2</key>
                    <value>1531921920</value>
                </entry>
            </lastWriteTimesInSeconds>
            <mentionedInCommentUnread>false</mentionedInCommentUnread>
            <partialUpdate>false</partialUpdate>
            <partialUpdateCategories>false</partialUpdateCategories>
            <partialUpdateFirstReadTime>false</partialUpdateFirstReadTime>
            <partialUpdateFollowers>false</partialUpdateFollowers>
            <partialUpdateMarkedHelpfulBy>false</partialUpdateMarkedHelpfulBy>
            <partialUpdateSnapFlag>false</partialUpdateSnapFlag>
            <removed>false</removed>
            <reviewRight>false</reviewRight>
            <roleRelationType>0</roleRelationType>
            <roleRights>
                <jsonType>RoleRight</jsonType>
                <role>
                    <jsonType>Role</jsonType>
                    <bitmask>0</bitmask>
                    <clientId>1</clientId>
                    <entityTypeId>22</entityTypeId>
                    <id>5</id>
                    <initiallyAssignedToAccount>false</initiallyAssignedToAccount>
                    <initiallyAssignedTypeToDocument>0</initiallyAssignedTypeToDocument>
                    <name>Matterial</name>
                    <notRemovable>false</notRemovable>
                    <permissions>
                        <administrateAll>false</administrateAll>
                        <bitmask>0</bitmask>
                        <comment>false</comment>
                        <createSnap>false</createSnap>
                        <editAdditionalProperty>false</editAdditionalProperty>
                        <editCategory>false</editCategory>
                        <editCategoryTypeTag>false</editCategoryTypeTag>
                        <editDocument>false</editDocument>
                        <editDocumentTemplate>false</editDocumentTemplate>
                        <editGallery>false</editGallery>
                        <editGlobalSavedSearch>false</editGlobalSavedSearch>
                        <editPerson>false</editPerson>
                        <editRole>false</editRole>
                        <editTask>false</editTask>
                        <immediateReview>false</immediateReview>
                        <publishUnreviewed>false</publishUnreviewed>
                        <showTrash>false</showTrash>
                        <systemAccount>false</systemAccount>
                        <viewArchive>false</viewArchive>
                        <viewStatistic>false</viewStatistic>
                    </permissions>
                </role>
                <type>2</type>
            </roleRights>
            <roleRights>
                <jsonType>RoleRight</jsonType>
                <role>
                    <jsonType>Role</jsonType>
                    <bitmask>0</bitmask>
                    <clientId>1</clientId>
                    <description>PERSONAL ROLE</description>
                    <entityTypeId>24</entityTypeId>
                    <id>8</id>
                    <initiallyAssignedToAccount>false</initiallyAssignedToAccount>
                    <initiallyAssignedTypeToDocument>0</initiallyAssignedTypeToDocument>
                    <name>PERSONAL ROLE [2|1]</name>
                    <notRemovable>false</notRemovable>
                    <permissions>
                        <administrateAll>false</administrateAll>
                        <bitmask>0</bitmask>
                        <comment>false</comment>
                        <createSnap>false</createSnap>
                        <editAdditionalProperty>false</editAdditionalProperty>
                        <editCategory>false</editCategory>
                        <editCategoryTypeTag>false</editCategoryTypeTag>
                        <editDocument>false</editDocument>
                        <editDocumentTemplate>false</editDocumentTemplate>
                        <editGallery>false</editGallery>
                        <editGlobalSavedSearch>false</editGlobalSavedSearch>
                        <editPerson>false</editPerson>
                        <editRole>false</editRole>
                        <editTask>false</editTask>
                        <immediateReview>false</immediateReview>
                        <publishUnreviewed>false</publishUnreviewed>
                        <showTrash>false</showTrash>
                        <systemAccount>false</systemAccount>
                        <viewArchive>false</viewArchive>
                        <viewStatistic>false</viewStatistic>
                    </permissions>
                </role>
                <type>2</type>
            </roleRights>
            <roleRights>
                <jsonType>RoleRight</jsonType>
                <role>
                    <jsonType>Role</jsonType>
                    <bitmask>0</bitmask>
                    <clientId>1</clientId>
                    <description>PERSONAL ROLE</description>
                    <entityTypeId>24</entityTypeId>
                    <id>7</id>
                    <initiallyAssignedToAccount>false</initiallyAssignedToAccount>
                    <initiallyAssignedTypeToDocument>0</initiallyAssignedTypeToDocument>
                    <name>PERSONAL ROLE [1|1]</name>
                    <notRemovable>false</notRemovable>
                    <permissions>
                        <administrateAll>false</administrateAll>
                        <bitmask>0</bitmask>
                        <comment>false</comment>
                        <createSnap>false</createSnap>
                        <editAdditionalProperty>false</editAdditionalProperty>
                        <editCategory>false</editCategory>
                        <editCategoryTypeTag>false</editCategoryTypeTag>
                        <editDocument>false</editDocument>
                        <editDocumentTemplate>false</editDocumentTemplate>
                        <editGallery>false</editGallery>
                        <editGlobalSavedSearch>false</editGlobalSavedSearch>
                        <editPerson>false</editPerson>
                        <editRole>false</editRole>
                        <editTask>false</editTask>
                        <immediateReview>false</immediateReview>
                        <publishUnreviewed>false</publishUnreviewed>
                        <showTrash>false</showTrash>
                        <systemAccount>false</systemAccount>
                        <viewArchive>false</viewArchive>
                        <viewStatistic>false</viewStatistic>
                    </permissions>
                </role>
                <type>2</type>
            </roleRights>
            <snap>false</snap>
            <template>false</template>
            <valid>true</valid>
        </source>
        <type>document</type>
    </results>
    <totalHits>1</totalHits>
    <aggregations>
        <buckets>
            <entry>
                <key>7</key>
                <value>1</value>
            </entry>
        </buckets>
        <indexField>categoryIds</indexField>
    </aggregations>
</searchResult>
×
Peter's Problem.