Postponed (maintainer needs more info)
Project:
Apache Solr Attachments
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2012 at 02:35 UTC
Updated:
24 Jun 2014 at 08:43 UTC
Jump to comment: Most recent
Comments
Comment #1
drh1716 commentedI'm experiencing the same issue......site has media module installed as well as apachesolr_attachments. When I look under the file entity in the apachesolr index configuration, I see checkboxes for audio, video, image, other. When I check all of the boxes, I'm still unable to get the attachment contents returned in a search. On test sites that do not have media module, under the file entity I am able to click on a bundle called file and attachment searching works.
Comment #2
nick_vhWe should definitely look into it! I don't have much media experience but I'll try to find and grab some media guys to help me with this
Comment #3
cchamp commentedI have the same problem. But the issue is due to the entity_file module, not media.
Comment #4
nick_vhfixed in commit http://drupalcode.org/project/apachesolr_attachments.git/commit/eb6fe75
Thanks for reporting!
Comment #6
tevans commentedThis still seems to be an issue. On the Apache Solr Default Index tab (/admin/config/search/apachesolr) under configuration, there are two sets of check boxes, 1 for Node and 1 for File. Under File, there are check boxes for each bundle type: Application (multipurpose), Audio, Image, Text, and Video. In my case, I have some PDF files I want to index, so I have only checked "Application (multipurpose)". After saving, the table up top still shows "0 items (0% has been sent to the server)" for Remaining, meaning the queue is empty.
Looking in the database, it appears that the table "apachesolr_index_entities_file" is not getting populated, even after choosing to reindex. Looking at the code, it seems like it might be an issue with the "_apachesolr_attachments_get_all_files" function, which is only returning files uploaded using the file field widget, so any files imported using Media would be excluded. Seems to me like rather than iterating over file field data to retrieve all files, the function should iterate over rows in the "file_managed" table. Does that make sense?
Edit: Forgot to mention that I am using the latest versions of Media, File Entity, Apache Solr, and Apache Solr Attachments.
Comment #7
tevans commentedAnyone?
Comment #8
nick_vhCould you please make a little list of steps so we can reproduce?
Comment #9
tevans commentedWell, there's not really much to it, but here goes:
Comment #10
David_Rothstein commentedIt sounds like the files aren't attached to another entity in that case? If so, they won't be indexed - as far as I understand this module only indexes files that are attached to another entity via a file field.
There's a feature request at #1908484: Index files that are not attached to other entities for this, though, and I'm curious if it would be accepted as a patch.
There's also the Apache Solr File module.
Comment #11
ricardoj.m.pinto@gmail.com commentedGreetings everyone!
I'm having the same issue, my setup is:
Has anyone tried with media 7.x-2.0 branch and file entity 7.x-2.0-alpha3 ?