Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to replicate:
- create an index with multiple type
- select multiple entity type like Node, Taxonomy and File
Then there is no checkbox to check for 'File content'. Because this is not a 'file' entity type and not a field.
Comment | File | Size | Author |
---|---|---|---|
#8 | Seleção_012.jpg | 134.79 KB | Yago Elias |
#8 | Seleção_011.jpg | 165.67 KB | Yago Elias |
#7 | when_the_index_is_type-2714531-7.patch | 2.06 KB | Yago Elias |
#4 | saa-file_content_multiple_index-2714531-4.patch | 2.51 KB | geekygnr |
#2 | saa-file_content_multiple_index-2714531-1.patch | 2.48 KB | nhamelin |
Comments
Comment #2
nhamelin CreditAttribution: nhamelin commentedHere is a patch that corrects this problem. Maybe is not the right way to do so, but it works.
Comment #3
geekygnr CreditAttribution: geekygnr at GiantGoat Web Development Inc. commented#2 works for me.
Comment #4
geekygnr CreditAttribution: geekygnr at GiantGoat Web Development Inc. commentedHad some problem's re-applying the patch to 1.10 here is a new one.
Comment #5
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedComment #6
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commented@geekygnr updating because your patch cannot be applyied anymore.
Comment #7
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commentedUploading a new patch
Comment #8
Yago Elias CreditAttribution: Yago Elias as a volunteer and at CI&T commented@geekygnr I know another way to get file content to be indexed into the index.
I had a big queue in the work to add files and their content and other metadata. Now, if your question is that, i will show a step by step on how to do it:
field is only a single field, so if you check more fields, not only the file contents will be indexed, but the other selected fields too
Now, when you index your site, all files and their content will be indexed.
@geekygnr is that what you want?? Please answer, so we can fix this issue.
Comment #9
izus CreditAttribution: izus commentedhi,
to avoid loosing Yago Elias's effort, this will be merged (i reviewed the code but it's not like if a user of multiple indexes dit a manual review...)
Comment #11
izus CreditAttribution: izus commentedComment #13
cirrus3d CreditAttribution: cirrus3d commentedUsing this module I tried to have the aggregated / file contents to show in Views. However, it is available in Views only as a filter, and not as a field. For example, I can search in file contents with an exposed filter, but I cannot display the contents in a row.
I have used both the patch and Yago's directions.