搜索插件、代码仓与 APP 分类

插件详情v1.58.0

algolia_client_insights

AlgoliaSearch 库的一个子包,为 Dart/Flutter 应用提供特定于洞察功能的增强搜索和发现。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
4万
喜欢数
2
Pub 分数
160

安装插件

flutter pub add algolia_client_insights

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

algolia_client_insights 包是 AlgoliaSearch 库的 Dart/Flutter 扩展,旨在通过启用详细的用户行为跟踪和分析来增强搜索和发现体验。它可与 Algolia 的洞察平台无缝集成,使开发者能够捕获点击、转化和查询等搜索事件,从而优化搜索相关性并个性化用户体验。该包专为跨平台使用而设计,支持 Android、iOS、Web、macOS、Windows 和 Linux,非常适合希望通过数据驱动洞察优化搜索性能的应用程序。

适合场景

  • 跟踪用户搜索交互
  • 分析搜索漏斗表现
  • 通过行为数据提升搜索相关性
  • 个性化搜索结果
  • 监控搜索转化率
  • 将搜索分析集成到仪表板中

主要特点

  • 实时事件跟踪
  • 跨平台兼容性
  • 与 Algolia Insights 的无缝集成
  • 支持点击和转化事件
  • 数据驱动的搜索优化
  • 轻量且易于使用的 API

适合对象

  • 搜索量高的应用
  • 电商平台
  • 内容发现应用
  • 需要个性化搜索的产品
  • 专注于用户体验改进的团队
  • 使用 Algolia Search 的开发人员

使用建议

  • 需要一个 Algolia 账户和 API 密钥
  • 依赖主 AlgoliaSearch 包
  • 仅限Algolia的分析生态系统
  • 用户数据的隐私合规性要求
  • 网络请求如果未妥善管理,可能会影响性能

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Algolia for Dart

The perfect starting point to integrate Algolia within your Dart project

Latest version Publisher

Flutter Guide • Community Forum • Stack Overflow • Report a Bug • Support

📚 Description

algoliasearch is a comprehensive Dart package that provides access to Algolia's robust search and insights features. It is an all-in-one solution designed to help you integrate Algolia within your Dart project seamlessly and efficiently.

The package currently offers the following clients:

  • Search Client: Allows you to leverage Algolia's search capabilities, including instant search results, search-as-you-type, and typo-tolerance.
  • Insights Client: Enables you to collect events related to your search and discovery experience, providing valuable insights into user behavior. With it, you can unlock powerful features such as recommendations, personalization, and smarter search results.
  • Search Lite Client: A lighter, search-only version of the library, perfect for projects that require search functionality without the need for features like indexing.

Future updates will include more clients to cover the entirety of Algolia's feature set, providing a complete toolset for building powerful, interactive search experiences in your Dart or Flutter application.

✨ Features

  • Low-Level HTTP Client: Provides a thin and minimal low-level HTTP client to interact directly with Algolia's API, giving you maximum control over your requests.
  • Cross-Platform Compatibility: Designed to work seamlessly on both native and web platforms, making it ideal for any Dart project.
  • Pure Dart Construction: Built with pure Dart for superior performance and maximum compatibility across Dart projects.

💡 Getting Started

Step 1: Add Dependency

To use this package in your project, add it as a dependency:

For Dart projects:
dart pub add algoliasearch
For Flutter projects:
flutter pub add algoliasearch
Step 2: Import the Package

You can now import the Algolia API client in your project and play with it.

import 'package:algolia_client_search/algolia_client_search.dart';
// Alternatively, you can import `algoliasearch_lite`, a **search-only** version of the library, if you do not need the full feature set:
// import 'package:algoliasearch/algoliasearch_lite.dart';

final client = SearchClient(appId: 'YOUR_APP_ID', apiKey: 'YOUR_API_KEY');

// Add a new record to your Algolia index
final response = await client.saveObject(
  indexName: "<YOUR_INDEX_NAME>",
  body: {
    'objectID': "id",
    'test': "val",
  },
);

// Poll the task status to know when it has been indexed
await client.waitTask('<YOUR_INDEX_NAME>', response.taskID);

// Fetch search results, with typo tolerance
final response = await client.search(
  searchMethodParams: SearchMethodParams(
    requests: [
      SearchForHits(
        indexName: "<YOUR_INDEX_NAME>",
        query: "<YOUR_QUERY>",
        hitsPerPage: 50,
      ),
    ],
  ),
);

❓ Troubleshooting

Encountering an issue? Before reaching out to support, we recommend heading to our FAQ where you will find answers for the most common issues and gotchas with the client. You can also open a GitHub issue

Contributing

This repository hosts the code of the generated Algolia API client for Dart, if you'd like to contribute, head over to the main repository. You can also find contributing guides on our documentation website.

📄 License

The Algolia Dart API Client is an open-sourced software licensed under the MIT license.

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。