Server Side Search for ccTiddly.

We are starting to deploy ccTiddly within BT and have been importing various types of data. In the same way that users experience issues with a Tiddlywiki files greater than 1 or 2 mbs the same issue occurs on ccTiddly.

Being server side there are a number of things we can do to reduce these issues. One idea we have is only loading the title data for each of the tiddlers onLoad. With such techniques the client side search (and some other areas) will lose value. As a result I have started experimenting with a server side search solution for ccTiddly.

The nice thing about this code is that it can later be used to search across revisions, tiddlywiki’s bag’s and even across different servers. It could also be modified quite easily to incorporate google search results.

The code is made up of two parts :

The plug-in (you need to update the server,  url and then create a tiddler and tag it with systemConfig) :

Plugin :

search.txt

PHP Code :

searchphp.txt

(you will need to rename the file from searchphp.txt to search.php)

This code has been written for ccTiddly 2.0 but you should be able to get it working on ccTiddly 1.2 with minimal problems. In this case search.php was added to a folder called ‘handle’ in the root ccTiddly directory.

This is the format we will be using in ccTiddly 2.x

A temporary example of this script can be found running at :

http://wikidev.osmosoft.com/search#search – Please note this is a dev server only.

Advertisements

4 thoughts on “Server Side Search for ccTiddly.

  1. Hi Simon,

    I think you are right : size is always a big problem, even for ccTiddly.

    For my part, i think it would be nice if :
    – at firt, ccTiddly should only load the title data (and meta-datas : tags, creator, modifier, created, modified, version and size) for each of the tiddlers,
    – then loading and saving of each “body” tiddler should be a “user Ajax call”.

    Roland

  2. Hi,

    I forgot one thing.
    A splash screen when a user is loading ccTiddly or a tiddler would also very nice.

    I have tested splash screen (http://tw.lewcid.org/#SplashScreenPlugin). Unfortunately, it seems it doesn’t work with cctidly. But perhaps someones know a way to use splash screen or another.

    Thanks

Comments are closed.