novicell/relewise
最新稳定版本:3.1.0
Composer 安装命令:
composer require novicell/relewise
包简介
Relewise
README 文档
README
This module adds integration to the Relewise service and offers direct API access for specialized implementations.
Installation
Relewise needs two settings in order to work provided in settings.php.
- $settings['relewise.apikey'] for the API key;
- $settings['relewise.dataset'] for what dataset the site uses;
Drupal features
These features are implemented out of the box and does not require custom code to utilize.
- Entity indexing. In order to get custom fields as well an alter hook needs to implemented though.
- Content view tracking. Currently only nodes.
- User tracking with integration for permission with Cookiebot.
Relewise service
For more custom functionality the "relewise" service can be used to implement further features with the following methods:
- isSelectedForIndexing: Tells whether an entity is selected indexing in the config.
- userUpdate: Register updates to the user like logins.
- registerContentView: Register content view on an entity.
- updateContentIndex: Updates the index on a single entity.
- updateContentIndexMultiple: Updates the index on multiple entities at once.
- deleteContentIndex: Deletes an entity from the index.
- resetIndex: Deletes all content from index and queues reindexing. Warning: may lose tracking data.
- searchContent: Performs a search for content in the index.
- getSearchedContent: Transforms a search result into entities.
- getContentId: Returns a content ID used for content indexing.
API
In case more specific and custom functionality is needed there is also a service called "relewise.api" which gives direct access to the Relewise API without any adaption to Drupal.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2025-07-08