A Docker-based Solr 9 setup with Plone-specific configuration and comprehensive pytest testing infrastructure.
- Solr 9: Latest stable version with modern Point field types
- Solr Schemas: Solr schemas for Plone, Google Drive, Confluence, Nextcloud, and SharePoint
- Docker Compose: Easy container management with persistent volumes
- Web UI: Web User Interface for search both across all Solr cores as well as in individual Solr cores
- Pytest Integration: Comprehensive testing framework with fixtures
- Makefile: Convenient commands for common operations
- Plone: Plone instance under https://plone-intranet.kitconcept.com/
- Google Drive: kitconcept shared Google Drive folder "Projects" (https://drive.google.com/drive/u/0/folders/0AJbrtUH0tCpCUk9PVA)
- Confluence: kitconcept Confluence demo instance (https://kitconcept.atlassian.net/)
- Nextcloud: local Nextcloud installation
- SharePoint: kitconcept SharePoint demo instance (https://kitconceptgmbh.sharepoint.com/sites/StandardTeamwebsiteffentlich)
- Docker and Docker Compose
- Python 3.8+ (for testing)
- Make
make upThis will start Solr (via Docker Compose) with multiple cores preconfigured at http://localhost:8983/solr/:
confluence- Confluence CMS contentgdrive- Google Drive contentnextcloud- Nextcloud contentplone- Plone CMS contentsharepoint- SharePoint contentall_content- Unified search core with all the content from the individual systems
Check README_CONFLUENCE.md
Check README_GOOGLE_DRIVE.md
Check README_NEXTCLOUD.md
Check README_PLONE.md
You can sync all Solr cores with:
make sync-all
Individual cores can be synced with:
make sync-confluence
make sync-gdrive
make sync-nextcloud
make sync-plone
make sync-sharepoint
- make reindex-gdrive-decoupled
- make index-gdrive-metadata (~20k documents in 18 min)
- make download-gdrive-files (~2500 files in 5h + 22 min)
- make process-cached-files (~2765 files 20 min)
- go to https://console.cloud.google.com/
- click on "Sie arbeiten in"
- click on "Neues Projekt"
- create a new project
- click on "API & Dienste" (https://console.cloud.google.com/apis/dashboard?inv=1&invt=Ab3aTw&project=manifoldcf-gdrive-integration)
- click on "Anmeldedaten" (https://console.cloud.google.com/apis/credentials?inv=1&invt=Ab3aTw&project=manifoldcf-gdrive-integration)
- click on "Anmeldedaten erstellen"
- choose "OAuth Client ID"
- choose "Anwendungstyp": "Webanwendung"
- click on "Erstellen"
- download json file with credentials
- Create a Service Account in Google Cloud Console (https://console.cloud.google.com/):
- Go to IAM & Admin → Service Accounts
- Create a new service account
- Download the JSON key file
- Enable Domain-wide Delegation (if accessing organization files):
- In the service account settings, enable "Domain-wide delegation"
- Note the client ID (101005515020586861973)
- Grant Drive API Access (for organization):
- In Google Admin Console → Security → API Controls
- Add the client ID with scope: https://www.googleapis.com/auth/drive.readonly
- Share Drive Files/Folders:
- Share specific files/folders with the service account email
- Or use domain-wide delegation for organization-wide access
make testmake core-statusThe system supports unified search across multiple content sources using the content_source field to distinguish between different systems:
# Search all content for "project"
curl "http://localhost:8983/solr/gdrive/select?q=Title:project"
# Search only Plone content
curl "http://localhost:8983/solr/gdrive/select?q=content_source:plone AND Title:project"
# Search only Google Drive content
curl "http://localhost:8983/solr/gdrive/select?q=content_source:google_drive AND Title:project"plone- Content from Plone CMSgoogle_drive- Content from Google Driveconfluence- Content from Confluence
make install-test-deps# Run all tests
make test-all
# Run only unit tests
make test-unit
# Run only integration tests
make test-integration
# Run tests with coverage
make test-cov
# Run tests in parallel
make test-paralleltests/conftest.py- Pytest fixtures and configurationtests/test_basic_functionality.py- Basic Solr operationstests/test_plone_specific.py- Plone-specific field tests
solr_docker- Session-scoped Docker container managementsolr_client- Function-scoped clean Solr clientsample_documents- Sample test documentspopulated_solr- Pre-populated Solr instance
├── configsets/ # Solr core configurations
│ ├── confluence/
│ │ └── conf/
│ │ ├── schema.xml # Confluence field definitions
│ │ ├── solrconfig.xml # Solr configuration
│ │ └── ...
│ ├── gdrive/
│ │ └── conf/
│ │ ├── schema.xml # Google Drive field definitions
│ │ ├── solrconfig.xml # Solr configuration
│ │ └── ...
│ ├── nextcloud/
│ │ └── conf/
│ │ ├── schema.xml # Nextcloud field definitions
│ │ ├── solrconfig.xml # Solr configuration
│ │ └── ...
│ ├── plone/
│ │ └── conf/
│ │ ├── schema.xml # Plone field definitions
│ │ ├── solrconfig.xml # Solr configuration
│ │ └── ...
│ └── sharepoint/
│ └── conf/
│ ├── schema.xml # SharePoint field definitions
│ ├── solrconfig.xml # Solr configuration
│ └── ...
├── connectors/ # Data connectors and configuration
│ ├── confluence_connector.py # Confluence sync connector
│ ├── gdrive_connector.py # Google Drive sync connector
│ ├── nextcloud_connector.py # Nextcloud sync connector
│ ├── plone_connector.py # Plone sync connector
│ ├── sharepoint_connector.py # SharePoint sync connector
│ ├── credentials_confluence.json.example # Confluence config template
│ ├── credentials_gdrive.json.example # Google Drive config template
│ ├── credentials_nextcloud.json.example # Nextcloud config template
│ ├── credentials_plone.json.example # Plone config template
│ ├── credentials_sharepoint.json.example # SharePoint config template
│ ├── requirements.txt # Python dependencies
│ ├── requirements-confluence.txt # Confluence specific dependencies
│ ├── requirements-sharepoint.txt # SharePoint specific dependencies
│ └── ...
├── web-ui/ # Web search interface
│ ├── app.js # Search application
│ ├── index.html # Web interface
│ └── styles.css # Interface styling
├── tests/ # Test suite
│ ├── conftest.py # Pytest configuration
│ ├── test_basic_functionality.py # Basic tests
│ └── test_plone_specific.py # Plone-specific tests
├── README_CONFLUENCE.md # Confluence setup guide
├── README_GOOGLE_DRIVE.md # Google Drive setup guide
├── README_NEXTCLOUD.md # Nextcloud setup guide
├── README_PLONE.md # Plone setup guide
├── docker-compose.yml # Docker services
├── Makefile # Common commands
├── pyproject.toml # Python project config
└── requirements-test.txt # Test dependencies
make up- Start Solr servicesmake down- Stop Solr servicesmake logs- View Solr logsmake clean- Clean Docker resources
make test- Test Solr connectivitymake core-status- Check core statusmake query-test- Test basic querymake post-data- Post test documentmake reload-core- Reload core configuration
make install-test-deps- Install test dependenciesmake test-unit- Run unit testsmake test-integration- Run integration testsmake test-all- Run all testsmake test-cov- Run tests with coveragemake test-parallel- Run tests in parallel
This project supports multiple Solr cores with unified search capabilities across different content sources.
These are the most important fields for search operations across all cores:
id- Unique document identifier (required for all documents)UID- Content-specific unique identifier (Plone UID, Google Drive file ID)Title- Document title/name (primary display field)Description- Document description/summary (searchable text)body_text- Full extracted text content (main search field)content_source- Source system identifier (plone,google_drive,confluence,sharepointetc.)
SearchableText- Full-text search field (copy field from multiple sources)portal_type- Content typereview_state- Workflow stateSubject- Multi-value tags/keywordsallowedRolesAndUsers- Security permissions
path_string,path_parents,path_depth- Path informationcreated,modified,effective,expires- Date fieldsmime_type,mime_category- File type informationsize- File size in bytes
is_folderish- Folder indicatorexclude_from_nav- Navigation exclusionshowinsearch- Search visibilityshared,starred,trashed- Google Drive specific flags
owners- File owners (multi-value)parents- Parent folder IDs (multi-value)web_view_link- Direct link to view filefile_extension- File extension (pdf, docx, etc.)sync_timestamp,sync_status- Synchronization metadata
This setup follows official Solr Docker best practices and pytest-solr patterns for robust testing infrastructure.
- Create test files in
tests/directory - Use provided fixtures from
conftest.py - Mark tests with
@pytest.mark.unitor@pytest.mark.integration - Follow existing patterns for Solr client usage
- Edit
configsets/plone/conf/schema.xml - Reload core:
make reload-core - Update tests as needed
MIT