Skip to content

Conversation

@jcastro-dotcms
Copy link
Contributor

@jcastro-dotcms jcastro-dotcms commented Jan 6, 2026

Proposed Changes

This PR enhances the Content Drive search functionality by adding support for MIME type filtering in the /api/v1/drive/search endpoint.

Key Changes:

Backend Implementation:

  • Refactored search architecture: Migrated from Lucene-based MIME type searching to SQL-based filtering for better performance and reliability.
  • Updated BrowserAPIImpl.java: Added SQL query logic to filter content by MIME types directly at the database level.
  • Enhanced ContentDriveHelper.java: Improved parameter handling to support MIME type filtering in drive search operations.

Technical Approach:

  • Removed dependency on Lucene index for MIME type queries.
  • Implemented direct SQL filtering for more efficient MIME type matching.
  • Maintained backward compatibility with existing search functionality.

Impact:

  • Users can now filter Content Drive search results by specific MIME types (e.g., image/png, application/pdf).
  • Improved search performance by eliminating unnecessary Lucene queries.
  • More reliable filtering through direct database access.

The changes are focused and surgical, touching only the necessary backend components (BrowserAPIImpl and ContentDriveHelper) while preserving the existing API contract.

This PR fixes: #34205

@jcastro-dotcms jcastro-dotcms added this pull request to the merge queue Jan 8, 2026
Merged via the queue into main with commit f4ff803 Jan 8, 2026
38 checks passed
@jcastro-dotcms jcastro-dotcms deleted the issue-34205-Support-mimeTypes-filtering-in-drive-search branch January 8, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Support mimeTypes filtering in /api/v1/drive/search

4 participants