[pmwiki-users] pagelist / searchresults with weighted search
vkrishn4 at gmail.com
Fri Jul 29 06:12:57 CDT 2011
On Friday 29 Jul 2011 5:48:44 am a.sonderhoff at gassi-tv.de wrote:
> With several PmWiki powered pages I am experiencing limitations in the
> Search functionality to a point where searching is nearly useless. This
> happens when there are a lot of pages (100+) with a large amount of content
> (50+ words). What happens is, that when using certain search terms, the
> page which is most relevant is nearly never listed as the first hit. This
> is because the search results can only be ordered by ctime, title, group
> etc., but not relevance/search quality.
> I was looking into writing a cookbook recipe myself to implement a simple
> weighted search (e. g. Title 0-20 pts, Description 0-10 pts, other content
> 0-5 pts) which the results can be sorted by (I used to do weighted searches
> a lot with mysql). But that would have meant to write an indexing routine
> of sorts. Of course PmWiki already comes with a simple search index, which
> basically lists keywords for the pages in the wiki. But the .pageindex
> seems to have no information about the quantity of these keywords within a
> specific page.
Have a look at some of search engines here:
From a brief look at php impementation of Lucene in Zend framework I guess
that would be an easy approach.
> Any ideas how to implement a weighted search without having to do that from
> scratch, e. g. adding this to the pagelist? I have to admit, that my
> understanding of PmWiki's internal functions and programming style is
> rather limited at this point. I am not so much a developer, more of a
> designer actually.
> Thanks for any input. I think weighted search is the only major feature
> PmWiki is missing to be a fully grown up wiki/cms.
More information about the pmwiki-users