Tk::Pod::Search_db3pm
Dirty oo wrapper for "perlindex"'s search functionality
Usage
** THIS IS ALPHA SOFTWARE everything may and should change **** stuff here is more a scratch pad than docomentation! **use Tk::Pod::Search_db;...$idx = Tk::Pod::Search_db->new?(INDEXDIR)?;...@hits = $idx->searchWords(WORD1,...); # @hits is a list of# relpath1,score1,... where# score is increasing$prefix = $idx->prefix();@word = Tk::Pod::Search_db::normalize(STRING1,...);
Overview
Module to search Pod documentation. Before you can use the module one should create the indices with "perlindex -index".
Missing
Enable options like -maxhits (currently = 15). Solve PREFIX dependency. Interface for @stop and @unknown also as methods return lists for last searchWords call?
Lots more ...
Methods
- $idx = Tk::Pod::Search_db->new(INDEXDIR)
-
Interface may change to support options like -maxhits
- $idx->seachWords(WORD1?,...?)
-
search for WORD(s). Return a list of
relpath1, score1, relpath2, score2, ...or empty list if no match is found.
- $pathprefix = $idx->
pathprefix() -
The return path prefix and
$relpathgive together the full path name of the Pod documentation.$fullpath = $patchprefix . '/' . $relpathNote:Should make it easy to use Tk::Pod::Search with perlindex but index specific prefix handling is a mess up to know.
Releases
10 releases since Debian 4.0 (Etch); the text changed 5 times.