The fields of the recipe module does not appear in the search index API.

Comments

zenimagine created an issue. See original summary.

klokie’s picture

dcam’s picture

Title: Incompatible with search API » Ingredient fields unavailable for indexing with the Search API

Most of them are available. The two yield fields are not yet because they have not been converted from the old recipe data table to the field API yet. I hadn't figured out how I wanted to set those up until I developed the 8.x port and haven't backported that yet. The more concerning part is that the Ingredient field is not available for indexing. I'll look into the issue now. My guess is that there is some part of the Search API that needs to be implemented for this custom field type.

dcam’s picture

Title: Ingredient fields unavailable for indexing with the Search API » Add Entity API integration for ingredient fields
Category: Bug report » Feature request
Priority: Major » Normal

I did not realize integration with the Entity API had to be added for custom fields. Without such integration, the ingredient fields were not available. I guess that I assumed that by making these genuine D7 fields, using the Field API and not the old custom schema, that they would be made available to modules like the Search API for use. Apparently not.

The docs I used as reference for adding it can be found here: https://www.drupal.org/docs/7/api/entity-api/property-info-for-fields.

  • dcam committed 0fe4a16 on 7.x-2.x
    Issue #2821281 by dcam: Add Entity API integration for ingredient fields...
dcam’s picture

Status: Active » Fixed

This is working well for me when indexing ingredient fields.

Status: Fixed » Closed (fixed)

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