docwell-server keeps a Bleve index of page titles and text in DOCWELL_DATA_DIR. Instead of hooking every write, an indexer polls PocketBase for pages whose "updated" moved (titles, saved content, trash and restore all touch it) and sweeps out purged pages every ten minutes. The index can be thrown away at any time: it rebuilds from the database, and superadmins can trigger a rebuild. Searches are limited to the spaces the caller can open, match the last word as a prefix and forgive one wrong letter. Snippets come back as plain text with match offsets, so clients never render server HTML. In the web app, Ctrl+K or the sidebar's search box opens a palette that shows recent pages until something is typed. The server containers get a /data volume for the index. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
883 B
Plaintext
44 lines
883 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
|
|
# Build output (embedded dist/ folders keep a .gitkeep so go:embed works on a fresh clone)
|
|
dist/*
|
|
!dist/.gitkeep
|
|
build/bin/
|
|
*.exe
|
|
/Server/bin/
|
|
/Web-App/bin/
|
|
/Server/internal/admin/dist/*
|
|
!/Server/internal/admin/dist/.gitkeep
|
|
/Web-App/internal/spa/dist/*
|
|
!/Web-App/internal/spa/dist/.gitkeep
|
|
/Desktop-App/bin/
|
|
/Desktop-App/frontend/dist/*
|
|
!/Desktop-App/frontend/dist/.gitkeep
|
|
|
|
# PocketBase local data
|
|
pb_data/
|
|
# docwell-server's search index (DOCWELL_DATA_DIR) during local development
|
|
Server/data/
|
|
/Database/bin/
|
|
|
|
# Env and editor
|
|
.env
|
|
*.local
|
|
.DS_Store
|
|
.idea/
|
|
.vscode/*
|
|
!.vscode/extensions.json
|
|
|
|
# Go
|
|
coverage.out
|
|
|
|
# Local design kit and planning docs (not part of the build)
|
|
/Design/
|
|
/docs/
|
|
|
|
# Editor page built by Packages/editor-bridge and copied into the apps
|
|
/Phone-App/assets/editor/*
|
|
!/Phone-App/assets/editor/.gitkeep
|
|
/Phone-App/android/build/
|