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.
The field published_at is not available when selecting content fields to index in search api.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1613324-3-publication_date-search_and_entity_integration.patch | 648 bytes | Grayside |
Comments
Comment #1
dgtlmoon CreditAttribution: dgtlmoon commentedIs that because it needs to be exported as a field?
Comment #2
egarias CreditAttribution: egarias commentedIs because I need to sort my view with it
Thanks
Comment #3
Grayside CreditAttribution: Grayside commentedThis appears to me to be achievable via Entity Property integration, made available in the presence of the Entity module.
Attached patch works for me.
Comment #4
jstoller@egarias: Were you able to test @Grayside's patch from #3? Can anyone else confirm this works as intended?
Comment #5
shortspoken CreditAttribution: shortspoken commentedI can confirm that with this patch the field "published at" is available at the search index view.
Thanks and cheers.
Comment #6
shortspoken CreditAttribution: shortspoken commentedHowever I would like to add that its still not available as a filter. That would be awesome!
@Grayside: do you think this can be achieved with a similar patch?
Comment #7
jstollerDid the patch committed in #2332253: Add Entity API entity wrapper support fix this issue?
Comment #8
jstollerComment #9
Grayside CreditAttribution: Grayside commentedThe other patch looks to contain the necessary functionality.
This change in either case works by adding the publication definition as a field on the entity. I'm not sure what step is necessary to expose it as a filter, that might require a custom views handler.
Comment #10
jstollerWell, I suppose I'll close this issue then. If anyone wishes to add additional functionality, please open a new issue and patches are always welcome.