Skip to content

feat: add unified search provider for DAV Connector events#86

Open
stephan1827 wants to merge 2 commits into
nextcloud:mainfrom
stephan1827:feat/events-unified-search
Open

feat: add unified search provider for DAV Connector events#86
stephan1827 wants to merge 2 commits into
nextcloud:mainfrom
stephan1827:feat/events-unified-search

Conversation

@stephan1827

@stephan1827 stephan1827 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Registers a new OCP\\Search\\IProvider (EventsSearchProvider) so DAV Connector calendar events appear in Nextcloud's unified search (top-right search bar)
  • Queries davc_entities_calendars JOIN davc_collections directly for fast, user-scoped full-text search on event title and description
  • Supports standard built-in filters (term, since, until) and pagination via cursor
  • Result links open the Nextcloud Calendar app pointing to the matched event

Test plan

  • Search for a term that matches a DAV Connector event title (e.g. a person's name)
  • Verify results appear in the unified search under "DAV Connector Events"
  • Verify clicking a result opens the Calendar app
  • Verify since / until date filters narrow results correctly
  • Verify pagination works (scroll to load more results)

🤖 Generated with Claude Code

@stephan1827 stephan1827 force-pushed the feat/events-unified-search branch from 3165ae4 to d0ce429 Compare June 26, 2026 07:51
@stephan1827 stephan1827 changed the title feat: add unified search provider for DAV Connector events feat: add unified search providers for DAV Connector events and contacts Jun 26, 2026
@stephan1827 stephan1827 force-pushed the feat/events-unified-search branch from 8c4dcb6 to d0ce429 Compare June 26, 2026 08:03
@stephan1827 stephan1827 changed the title feat: add unified search providers for DAV Connector events and contacts feat: add unified search provider for DAV Connector events Jun 26, 2026
@SebastianKrupinski

Copy link
Copy Markdown
Collaborator

Hi Stephan,

You need to rebase this, PR to the latest main, you have unrelated commits and changes in this PR.

@SebastianKrupinski SebastianKrupinski force-pushed the feat/events-unified-search branch 3 times, most recently from 86ea3e3 to 3147b6e Compare June 26, 2026 11:40
@stephan1827 stephan1827 force-pushed the feat/events-unified-search branch 3 times, most recently from 3658016 to a0347b4 Compare June 26, 2026 13:16
stephan1827 and others added 2 commits June 26, 2026 15:51
Registers OCA\DAVC\Search\EventsSearchProvider as an OCP\Search\IProvider
so that calendar events from connected DAV services appear in Nextcloud's
top-right unified search alongside native calendar events.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Stephan Stricker <stephan@stricker.cloud>
Registers ContactsSearchProvider as an OCP\Search\IProvider so that contacts
from connected DAV address books appear in Nextcloud's unified search.
Searches the stored vCard data field and extracts FN, EMAIL, TEL and ORG
for result display.

Also fixes case-insensitive search for both events and contacts providers
by switching from like() to iLike() in all search queries.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Stephan Stricker <stephan@stricker.cloud>
@stephan1827 stephan1827 force-pushed the feat/events-unified-search branch from a0347b4 to 50d516e Compare June 26, 2026 13:52
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.

2 participants