Apache::Wyrd::Interfaces::Indexable - Pass metadata to Wyrd Index service
NONE
Indexable provides the minimum methods required by an object to be indexed using the Apache::Wyrd::Services::Index object. An indexable object can be inserted into the index via the update_entry method of the index.
update_entry
name
How much more, relative to an instance of the word in the body (_data), a keyword is worth. Defaults to 5.
(format: (returns) name (arguments after self))
no_index
Returns true if the item should not be indexed. Traditionally supplied via the noindex flag attribute of a Wyrd.
force_update
Tells the index to ignore timestamp and digest arguments, and always update the entry for this object even if there is no apparent change. This may be helpful in debugging index problems.
index_foo
Where foo is at a minimum of name, timestamp, digest, data, title, keywords, and description. Any attributes specified in the attributes option of the Apache::Wyrd::Services::Index object will also need to be implemented in an indexable object. If the attribute is a map, it needs only to return a string of tokens separated by whitespace, punctuation optional.
Because the assumption is that the indexable item will probably be a web page, the path to the file from the server root is the traditional "name" of the item. As such, when the results of a search are returned by the Index, the href attribute of a link to the page is created from the name attribute.
Also in this tradition, the default map for searching uses the tokens provided by index_data as the basis for the index' word_search.
index_data
word_search
Barry King <wyrd@nospam.wyrdwright.com>
General-purpose HTML-embeddable perl object
Various index objects for site organization.
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd.
Apache::Wyrd
To install Apache::Wyrd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Wyrd
CPAN shell
perl -MCPAN -e shell install Apache::Wyrd
For more information on module installation, please visit the detailed CPAN module installation guide.