承接 boldminded/dexter-core 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boldminded/dexter-core

最新稳定版本:1.0.7

Composer 安装命令:

composer require boldminded/dexter-core

包简介

README 文档

README

Algolia does not have a concept of federation, so the federation option is used to apply the same search parameters to multiple queries.

The two most common search parameters have aliases that will work regardless of the search provider chosen.

index, indexName, and indexUid are all synonymous when using Algolia or Meilisearch.

term, query, and q are all synonymous when using Algolia or Meilisearch.

searchParams is used for any additional, query parameters. E.g. facets, aroundLatLng, etc when used in the single index search. When using multiSearch you will need to refer to the documentation of your chosen search provider for exact parameter names and values to properly construct the queries array. The index and query normalizers will still be applied even in multiSearch.

(substitute craft. for exp. if using ExpressionEngine with Coilpack)

{% set results = craft.dexter.multiSearch({
    federation: {
        limit: 10,
    },
    queries: [
        {
            index: 'demo_collections',
            q: 'van gogh'
        },
        {
            index: 'demo_images',
            q: 'van gogh'
        }
    ]
})
%}

{% if results %}
    <ul>
        {% for result in results %}
            <li>{{ result.title }} {{ result.objectID }}</li>
        {% endfor %}
    </ul>
{% else %}
    <p>No results found.</p>
{% endif %}
{% set results = craft.dexter.search({
    index: 'demo_collections',
    searchParams: {},
}) %}
{% set ids = craft.dexter.search({
    index: 'demo_collections',
    q: 'empire',
    searchParams: {},
    idsOnly: true,
}) %}

{% set entries = craft.entries.section('collection').uid(ids).all() %}

In ExpressionEngine

{exp:dexter:search index="demo_collections" term="van gogh"}
    {search_params}
        {
            "limit": 1,
            "offset": 0,
            "filter": [
                "status = 'open'",
                "entry_date >= 1732312020"
            ]
        }
    {/search_params}

    {title}
{/exp:dexter:search}

统计信息

  • 总下载量: 61
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-10-15