/[drupal]/contributions/modules/apachesolr_attachments/apachesolr_attachments.module
ViewVC logotype

Diff of /contributions/modules/apachesolr_attachments/apachesolr_attachments.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.14, Tue Oct 27 21:57:13 2009 UTC revision 1.15, Tue Oct 27 23:56:58 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: apachesolr_attachments.module,v 1.13 2009/10/27 19:03:25 pwolanin Exp $  // $Id: apachesolr_attachments.module,v 1.14 2009/10/27 21:57:13 pwolanin Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 477  function apachesolr_attachments_extract_ Line 477  function apachesolr_attachments_extract_
477    // by apachesolr.module.    // by apachesolr.module.
478    $solr = apachesolr_get_solr();    $solr = apachesolr_get_solr();
479    $filename = basename($filepath);    $filename = basename($filepath);
480    $params = array('resource.name' => $filename);    $params = array(
481        'resource.name' => $filename,
482        'extractFormat' => 'text', // Matches the -t command for the tika CLI app.
483      );
484    // Construct a multi-part form-data POST body in $data.    // Construct a multi-part form-data POST body in $data.
485    $boundary = '--' . md5(uniqid(time()));    $boundary = '--' . md5(uniqid(time()));
486    $data = "--{$boundary}\r\n";    $data = "--{$boundary}\r\n";

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.2