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,
Issue fork entityqueue-3004722
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
Comment #2
iknowbryan commentedWould love this as well for D8/9 version!
Comment #3
mlncn commentedSee also #3016821: Sort by Entityqueue
Comment #4
mlncn commentedThis 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).
Comment #5
mlncn commentedThis 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
Comment #8
martijn snapper commentedIt seems that when removing an entity from the queue, the index is not updated. In the
hook_updateonly the entities of the current list are included in the entity update ofsearch_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.