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.
Should we make this optional? Or always on? Or make it conditional to 
non-GAE? Should we break request.var.q in tokens and search that each of 
them is in tags or in title even out of order?


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 
> <massimo....@gmail.com <javascript:>> 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? 
> > 
> > -- 
> > 
> > 
> > 
>

-- 



Reply via email to