The field published_at is not available when selecting content fields to index in search api.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dgtlmoon’s picture

Is that because it needs to be exported as a field?

egarias’s picture

Is because I need to sort my view with it

Thanks

Grayside’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
648 bytes

This appears to me to be achievable via Entity Property integration, made available in the presence of the Entity module.

Attached patch works for me.

jstoller’s picture

@egarias: Were you able to test @Grayside's patch from #3? Can anyone else confirm this works as intended?

shortspoken’s picture

Issue summary: View changes

I can confirm that with this patch the field "published at" is available at the search index view.

Thanks and cheers.

shortspoken’s picture

However 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?

jstoller’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

Did the patch committed in #2332253: Add Entity API entity wrapper support fix this issue?

jstoller’s picture

Status: Needs review » Postponed (maintainer needs more info)
Grayside’s picture

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

jstoller’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Well, 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.