In our setup here, we have two subdirs under /files/ as follows:
/files/en/ (English versions of PDFs)
/files/fr/ (French versions of PDFs)
Swish-e itself correctly indexes these files, and when queried manually via the command line, shows the proper path. However, the Swish-e Drupal module gets the link path incorrect when displaying search results.
Let's assume we have a file: /var/www/htdocs/files/en/English.PDF
Swish-e correctly stores the path as above.
The link in the search results provided by the Swish-e Drupal module is: /files/English.PDF - the subdir gets dropped.
Has anyone else seen this and can anyone suggest a fix?
Comments
Comment #1
mkelly commentedAh. Found the problem. The code doesn't expect that there is any kind of structure underneath files/ and does a $basename = basename($results), throwing away any subdirectory structure.
I have coded up a small fix for my site. I'll generalize it and submit it.
Comment #2
populist commentedThis is a limitation to the module and something I would like to see added in the future. There are several other issues about it.