boldminded / craft-dexter
Advanced Algolia or Meilisearch index management and search
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Type:craft-plugin
pkg:composer/boldminded/craft-dexter
Requires
- php: >=8.2
- boldminded/dexter-core: ^1.0
- craftcms/cms: ^5.8.0
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
This package is auto-updated.
Last update: 2025-10-17 12:04:41 UTC
README
Advanced Algolia or Meilisearch index management and search
Requirements
This plugin requires Craft CMS 5.8.0 or later, and PHP 8.2 or later.
Installation
You can install this plugin from the Plugin Store or with Composer.
From the Plugin Store
Go to the Plugin Store in your project’s Control Panel and search for “Dexter”. Then press “Install”.
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require boldminded/craft-dexter # tell Craft to install the plugin ./craft plugin/install dexter
Documentation
https://docs.boldminded.com/dexter/docs-craft
Template Tags
Iterate over search results object directly from Algolia or Meilisearch.
{% set results = craft.dexter.search({ index: 'demo_collections', filter: [], perPage: 50, }) %} {% if results %} <ul> {% for result in results %} <li>{{ result.title }}</li> {% endfor %} </ul> {% else %} <p>No results found.</p> {% endif %}
Or, use the idsOnly
parameter to retrieve only the UIDs of the search results. Then use the UIDs to fetch
the full entry object with Craft's entries tag.
{% set ids = craft.dexter.search({ index: 'demo_collections', term: 'empire', filter: [], perPage: 50, idsOnly: true, }) %} {% set entries = craft.entries.section('collection').uid(ids).all() %} {% if entries %} <ul> {% for result in entries %} <li>{{ result.title }}</li> {% endfor %} </ul> {% else %} <p>No results found.</p> {% endif %}