Simon Cozens > Plucene-SearchEngine > Plucene::SearchEngine::Index::File

Download:
Plucene-SearchEngine-1.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source  

NAME ^

Plucene::SearchEngine::Index::File - File reader for filesystem files

DESCRIPTION ^

This frontend module takes a filesystem file, extracts its metadata and passes the file onto a backend. The frontend registers the following Plucene fields:

mimetype

The MIME type of the file.

filename

The basename of the file's filename.

id

The URL of the file (file://...)

modified

A Plucene date field representing the last modified date of the file

METHODS

    Plucene::SearchEngine::Index::File->examine($filename [, $encoding])

This examines a file on the filesystem for the above metadata, before handling it to a backend. If an encoding is given, the text will be flagged as originally being that encoding, and then converted to UTF-8.

syntax highlighting: