NoteSelf / NoteSelf.github.io

Home page of the project
Other
125 stars 18 forks source link

Search does not find text of unloaded tiddlers #68

Open willwray opened 5 years ago

willwray commented 5 years ago

Seach appears to be broken in Noteself, same as is in other 'tiddly server' projects, as explained in this Tiddlywiki core issue: https://github.com/Jermolene/TiddlyWiki5/issues/3000

The browser-based search built into TiddlyWiki5 will only search the text of tiddlers that have been fully loaded. The expectation is that when lazy loading is used in a client-server configuration, then it is the server that really needs to handle search operations, because it is only the server that can "see" the text of all tiddlers.

This is a severe limitation on the usefulness of the search box.

1) As a workaround, is there a way to load all tiddlers in full from the remote couchdb? Possibly a configuration parameter to switch from 'skinny' to 'full' download. Preferably, the full tiddler db would be cached in the local browser store between logins to save on repeated download bandwidth. This should work well enough up to a fairly large scale.

2) Beyond this, as the overall size of tiddlers increases so does the need for effective search. Is there a way for the browser to send full text queries to couchdb instances that support it, returning the list of hits to be displayed as titles below the search box, as usual?

willwray commented 5 years ago

Workaround Do a 'normal save': Press the circled-tick button above the search box (with "Save changes" tooltip). This will load the full content of all tiddlers from the remote db (you don't have to actually save the file as the full text data is already downloaded).

danielo515 commented 4 years ago

As you said, this is a known issue of TW itself. We have discussed it here: https://forum.noteself.org/t/search-doesnt-always-search-the-bodies-notes/235/8

However, in NoteSelf we have the opportunity to load the tiddlers entirely when reading from the database. We just don't do it for performance reasons. Maybe I can include an option if you want to take the risk.

cskeogh commented 3 years ago

Workaround 2: (as posted by @willwray )

$:/ControlPanel → TiddlyPouch tab → Use fat tiddlers ☑

Screenshot 2021-07-22 082520