Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5306

Add the indexation on binary resources

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.7, 3.9
    • None
    • None
    • None

        [CMS-5306] Add the indexation on binary resources

        Laurence Aumeunier added a comment - - edited

        For binary and file metadata, the following fields are now indexed:

        • [metadataPath]$filename
        • [metadataPath]$size
        • [metadataPath]$lastModified
        • [metadataPath]$mime-type
        • [metadataPath]$type
        • [metadataPath]$path
        • [metadataPath]$viewUrl (site absolute url)
        • [metadataPath]$downloadUrl (site absolute url)

        See Indexation.PNG for a real sample.

        Here this is a java sample to retrieve and sax the view url of the illustration image:

        String viewUrl = doc.get("illustration/image$viewUrl");
        if (viewUrl != null)
        {
             XMLUtils.createElement(contentHandler, "illustrationUrl", viewUrl);
        }
        

        Laurence Aumeunier added a comment - - edited For binary and file metadata, the following fields are now indexed: [metadataPath] $filename [metadataPath] $size [metadataPath] $lastModified [metadataPath] $mime-type [metadataPath] $type [metadataPath] $path [metadataPath] $viewUrl ( site absolute url ) [metadataPath] $downloadUrl ( site absolute url ) See Indexation.PNG for a real sample. Here this is a java sample to retrieve and sax the view url of the illustration image: String viewUrl = doc.get( "illustration/image$viewUrl" ); if (viewUrl != null ) { XMLUtils.createElement(contentHandler, "illustrationUrl" , viewUrl); }

          laurence Laurence Aumeunier
          jonathan Jonathan Wendlinger
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: