On Fri, Jan 18, 2013 at 5:42 PM, Massimo Di Pierro <[email protected]> wrote: > The issue to be considered is that this will not work on Google App Engine > and it may considerable slow down searches for many wiki pages.
Massimo, I think there's another issue, because Auth.wiki() allows me to save a page without any tag and cannot find it later. If this isn't a problem in search, it is a problem when saving the page. IMHO, this is a search problem, because I'm not supposed to tag every page I save. About the GAE problem, I can't say anything because I don't know it. But if you strip out the part that make the count, it should work for rdbms. > Should we break request.var.q in tokens and search that each of > them is in tags or in title even out of order? I think yes. > > > On Friday, 18 January 2013 10:29:05 UTC-6, viniciusban wrote: >> >> Massimo, in Wiki.search() method, there is this code: >> if query is None: >> query = (db.wiki_page.id == db.wiki_tag.wiki_page) &\ >> (db.wiki_tag.name.belongs(tags)) >> query = query | >> db.wiki_page.title.contains(request.vars.q) >> >> So, search touches title, too. >> >> >> >> On Fri, Jan 18, 2013 at 1:46 PM, Massimo Di Pierro >> <[email protected]> wrote: >> > RIght now wiki search only searches by tag. Perhaps you should also >> > search >> > by title? >> > >> > >> > On Thursday, 17 January 2013 19:19:58 UTC-6, viniciusban wrote: >> >> >> >> I've had a problem today, trying to search auth.wiki pages without >> >> tags, but they aren't found. >> >> >> >> As tags aren't required to save a page, I think this is a problem in >> >> Wiki.search() method. >> >> >> >> What do you think? >> > >> > -- >> > >> > >> > > > -- > > > --

