Class FileExtensionQuery

  • All Implemented Interfaces:
    Expandable<SearchQuery>, SearchQuery

    public class FileExtensionQuery
    extends Object
    implements SearchQuery
    Search for content with a particular file extension. Normally only attachments will match this query, but for safety if you only want attachments you should AND with a ContentTypeQuery in case something else in the future has file extensions.
    • Constructor Detail

      • FileExtensionQuery

        public FileExtensionQuery​(String fileExtension)
        Construct a new query for a given file extension
        Parameters:
        fileExtension - the extension (without a period)