On Sun, Jul 8, 2012 at 11:42 AM, Lluís Batlle i Rossell <[email protected]>wrote:
> On Sun, Jul 08, 2012 at 10:43:13AM +0300, Baruch Burstein wrote: > > On Wed, Jul 4, 2012 at 7:28 PM, Stephan Beal <[email protected]> > wrote: > > > > > > - Adding more metadata to wikis, e.g. a title field. We might embed > > >> this > > >> > into the wiki content using a new wiki tag or similar. > > >> > > >> This would be great if it enabled keyword based tagging for later > > >> search. > > >> > > > > > > What do you mean by keyword based tagging? (i'm not a search expert.) > Full > > > text search is difficult in fossil because things are stored as deltas. > > > However, i believe someone (don't remember who) was working on this > and i > > > _thought_ there was a branch somewhere for this. > > > > > I posted a patch a while back that just did a simple glob search. It > worked > > well enough for smallish repos, but testing it on the netbsd's pcksrc > > repository (>2Gib) it was way too slow. I have since started > implementing a > > tokenized search (storing only token deltas, e.g. which search terms > where > > added and removed in each new version of a file), but only got as far as > > building the indexed tables, without any optimization such as caching and > > without actually testing it since I didn't yet implement the search > > function using the index, when I started finals and haven't had a chance > to > > get back to it. If anyone wants this partial code, I can post it. > > Maybe you could put that in a branch in the main repository? I'd be > interested. > Sorry, I've been very busy with my final exams and didn't get around to this. Here is what I have: http://pastebin.com/see966Lu Like I said, it has unoptimized code to create the search index, but it is only called on a rebuild, not on a checkin. And it is not really tested(but it does compile and run), since I haven't updated the search to use it yet. -- ˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

