I was hoping for a way to index an items entityqueue membership in our search api solr install. Is there a way to do that? When selecting fields to index I don't see any option to index anything about the enityqueues the entity belongs to. If it could be indexed it some way it would make it very easy to then create faceted search blocks of queues that items belong in which I would imagine would be useful to many people.

Thanks,

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

meecect created an issue. See original summary.

iknowbryan’s picture

Would love this as well for D8/9 version!

mlncn’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
mlncn’s picture

Status: Active » Needs review

This issue fork could really use some initial review from people knowledgeable about Entityqueue and Search API.

It works for my purpose but definitely needs work (in particular needs to deal appropriately with the eventuality that the same entity gets added to more than one entityqueue).

mlncn’s picture

This does not trigger an update to the index when an item is added, removed, or re-ordered in an update queue.

Possible code i'm hoping for Search API advice on in https://www.drupal.org/project/search_api/issues/3016821#comment-16054098

megakeegman made their first commit to this issue’s fork.

martijn snapper’s picture

It seems that when removing an entity from the queue, the index is not updated. In the hook_update only the entities of the current list are included in the entity update of search_api.entity_datasource.tracking_manager.

If I also include the entities that are removed, the overview updated correctly. I don't know if this is the best way.