搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。