Skip to content

Forum content search fts5#257

Open
jolavillette wants to merge 2 commits intoRetroShare:masterfrom
jolavillette:ForumContentSearchFTS5
Open

Forum content search fts5#257
jolavillette wants to merge 2 commits intoRetroShare:masterfrom
jolavillette:ForumContentSearchFTS5

Conversation

@jolavillette
Copy link
Contributor

Code and comment by AI

Forum Deep Search (FTS5 Integration) - Core Logic

This PR implements the core backend for the Forum Content Search feature using the SQLite FTS5 extension.

Key Changes

  • FTS5 Engine: Implementation of DeepForumsIndexFTS5 in src/deep_search/. This engine handles full-text indexing and searching for forum groups and messages.
  • Secure Storage: The search index is stored in a dedicated SQLite database, encrypted using SQLCipher with the standard GXS keys.
  • Service Integration:
    • Updated p3gxsforums to orchestrate indexing and search queries.
    • Enhanced p3wire for internal signaling and potential future sync metadata.
  • Database Utilities: Extended RetroDb and rsdataservice to support the specific requirements of the FTS5 encrypted index.
  • Serialization: Updated TLV serializers in src/serialiser/ to ensure forward compatibility with search-related metadata.

Verification

  • Unit tests for FTS5 table creation, indexing, and weighted search results.
  • Verification of database encryption at rest.

@jolavillette jolavillette force-pushed the ForumContentSearchFTS5 branch 3 times, most recently from 4067e59 to aaa29b2 Compare February 12, 2026 07:35
@jolavillette jolavillette force-pushed the ForumContentSearchFTS5 branch from aaa29b2 to f7ee0b3 Compare February 13, 2026 20:31
@jolavillette jolavillette force-pushed the ForumContentSearchFTS5 branch from f7ee0b3 to 19c41af Compare February 17, 2026 13:39
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.

1 participant