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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nhamelin created an issue. See original summary.

nhamelin’s picture

Here is a patch that corrects this problem. Maybe is not the right way to do so, but it works.

geekygnr’s picture

#2 works for me.

geekygnr’s picture

Version: 7.x-1.9 » 7.x-1.10
FileSize
2.51 KB

Had some problem's re-applying the patch to 1.10 here is a new one.

Yago Elias’s picture

Status: Active » Needs review
Yago Elias’s picture

Status: Needs review » Needs work

@geekygnr updating because your patch cannot be applyied anymore.

Yago Elias’s picture

Uploading a new patch

Yago Elias’s picture

Status: Needs work » Active
Issue tags: +ciandt-contrib
FileSize
165.67 KB
134.79 KB

@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:

  1. Create the index of File or Multiple type.
  2. On 'Filters' tab, make sure you checked the 'File attachments' and 'agregated field'
  3. Fill a empty agregated field and hit save
  4. Go back again to this 'Filter' page, you'll see a new option on 'agregated field' that is the 'File content' (yeah, needs to be like that)
  5. Feel free to check whatever more field you want to agregate on this field.REMEMBER:This agregated
    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
  6. Check if this field is checked on 'Fields' tab.

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.

izus’s picture

hi,
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...)

  • izus committed 2aaf73a on 7.x-1.x authored by Yago Elias
    Issue #2714531 by Yago Elias, nhamelin, geekygnr, izus: When the index...
izus’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

cirrus3d’s picture

Using 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.