linlu11 的博客

Search Files

Search Files

jrglasgow - March 29, 2008 - 01:55
Sample Search

Search Files 6.x-2.x allows searching for files in node attachments and in arbitrary directories. Text is extracted by externally provided helper applications.

Helper Applications

In order to extract text, this module calls 'helper apps' such as cat and pdftotext. Drupal administrators can configure any helpers they like. Helper apps need to be installed on the server and need to be setup to print to stdout.

Most Linux distributions have the following helper apps available:

  • cat - generic text (txt) files
  • pdftotext - Adobe Acrobat (pdf) Documents
  • catdoc - Microsoft Word (doc) Documents
  • xls2csv - Microsoft Excel (xls) files
  • catppt - Microsoft Power Point (ppt) files
  • unrtf - Rich Text Format (rtf) files

For more information about helpers and how to configure them, see hints for Linux and Windows. It is also possible to configure helpers in a shared hosting environment.

History and Development

The 6.x-2.x versions combine Search Files, previously only capable of indexing files in directories, with Search Attachments, only capable of indexing files in attachments. Outcome is three modules search_files_directories and search_files_attachments with common code moved to search_files. The modules can be enabled/disabled individually with search_files being required by any of the two others.

Version 2 of this module has been sponsored by: Actual Size Creative and OpenPKG GmbH.

Releases

Official releases Date Size Links Status
6.x-2.0-beta4 2009-Sep-05 20.56 KB Supported for 6.x This release is supported but is not currently the recommended release for 6.x.
6.x-1.6 2008-Jun-20 13.49 KB Recommended for 6.x This is currently the recommended release for 6.x.
5.x-1.2 2009-Jan-10 13.41 KB Recommended for 5.x This is currently the recommended release for 5.x.
Development snapshots Date Size Links Status
6.x-2.x-dev 2009-Sep-16 20.58 KB Development snapshot Development snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.

Hi

This is my configuration:

Directory list (absolute path):

D:/xampp/htdocs/observatorios/sites/default/files

Helpers:

PDF:
D:\xampp\htdocs\helpapps\pdftotext.exe %file% -

DOC:
D:\xampp\htdocs\helpapps\catdoc.exe %file%

XLS:
D:\xampp\htdocs\helpapps\xls2csv.exe %file%

PPT:
D:\xampp\htdocs\helpapps\catppt.exe %file%

In the case of PPT, DOC and XLS helper apps, be very careful to avoid using directory names with spaces or longer than 8 characters (i.e ../helperapps/.. instead of ../helpapps/...) because they cause troubles.

Regards

Del.icio.us : drupal, module

posted on 2009-11-10 23:10  linlu11  阅读(247)  评论(0编辑  收藏  举报

导航