Search is here. OpenLucius 3.0 beta3 ships with a search module: workspace-wide search across every group you belong to.
Team workspaces can get messy over time. Messages, tasks, documents, comments and files pile up in dozens of groups, and sooner or later someone asks: "Where did we decide that again?"
OpenLucius is an open source team collaboration platform, published as a Drupal distribution (currently Drupal 11). This post shows what it gives your users and how it is built on Search API. And this is only the start: AI semantic search is coming!
Get it from the project page, try it locally with Composer and DDEV:
composer create-project lucius-digital/openlucius-project:3.0.0-beta3 MY_PROJECT_FOLDER
cd MY_PROJECT_FOLDER && ddev config && ddev launch
Then walk through the site installer as you would with vanilla Drupal. That's it, no additional config needed.
What your users get
Type a word in the search bar at the top of any page, press Enter, and OpenLucius shows everything that matches, across all your groups, on one page.
One search box for everything
You don't need to remember where something was written. Search looks through:
- Messages
- Posts
- Tasks on boards
- Book pages (text documents)
- Files
- Folders
- Comments
Search words light up
The words you searched for are highlighted in the results, so you can see at a glance why something matched.
You only see what you are allowed to see
Search only shows results from groups you are a member of. A confidential project in another group never leaks into your results.
The best matches come first
Results are sorted by relevance and shown 10 per page, with page numbers at the bottom. A search for several words finds items that contain any of them, so you cast a wide net rather than a narrow one.
Under the hood
ol_search is built on the contrib Search API module with its database backend. Search API does the indexing and matching; ol_search adds what OpenLucius needs on top.
What's in the module
- A search page at
/search, open to everyone who can see OpenLucius content - A search service that queries the index and turns each hit into a result card
- Two search forms: a compact one in the header and a larger one on the results page
- Templates for the results page and the result card
- A hook so other modules can add their own content to the results
- A small script that highlights your search terms
One index for everything
All content goes into a single Search API index on the database: messages, comments, posts, tasks, book pages, files and folders. Each item also stores the group it belongs to. Content is indexed as soon as it is saved, so new items are searchable right away.
Access is part of the query
When someone searches, the query only looks at items from groups they are a member of. Because access is filtered inside the search query and not afterwards, result counts and pages are always correct for each user. Results are sorted by relevance, 10 per page.
Results
For each hit, ol_search loads the original item and builds a card with the author, group, type, date, title and a short plain-text snippet. The card links straight to the message, task, book page or file.
Wrapping up
For users, ol_search is one box that finds anything in their groups and takes them straight to it. For developers, it is a small module that leans on Search API for the heavy lifting and adds what OpenLucius needs: group-based access, readable result cards and a hook so every app can join in.
Next on the list: make the group conditions hookable so apps can register their own group fields, and link post results directly to the post instead of the post list.
Try the beta and report bugs, ideas or patches in the OpenLucius issue queue on Drupal.org.
Coming next: AI search. We are building AI-powered search into an OpenLucius AI assistant, so you can ask questions about your workspace in plain language. So, stay tuned!
