I'm considering integrating Swish into my Drupal install, because it would be very helpful for to be able to search node attachments. I get the impression, however, that the module currently returns a link directly to the file (please correct me if I'm wrong).
What I would prefer is if the module could instead index the files against the nodes to which they're attached, and then filter the results based on node_access, to ensure the user has rights to view all matching nodes.
The issue is that my site uses Taxonomy Access Control to restrict the content users can see, and I need to make sure users won't be shown files they shouldn't have access to. If this is already how the Swish module operates, that would be fantastic, otherwise I would greatly appreciate if it could be. If I could be of assistance in seeing that feature implemented, I would be glad to help out.
Comments
Comment #1
populist commentedThis would be a really useful feature, in my opinion. The current functionality of the module does not respect drupal access permissions and will return results from any file in the /files (or equivalent) directory. In terms of implementation, the issue here is that the current module structure does not really integrate with the drupal node system. The files that are searched are located, results parsed, and results returned independent of anything related to drupal - its all swish-e stuff. Hopefully this can be better integrated with drupal in a future version.
Comment #2
populist commentedComment #3
mandclu commentedFor the site I was working on, I was able to get what I needed by using the Search Attachments module. It just adds the content of the attachments to the text used for indexing.
Maybe this module could be made to work the same way, if it were possible to just use the Swish-e parsing.
Comment #4
populist commented