패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.58.0

algolia_client_search

Dart/Flutter 앱에서 검색 및 탐색을 향상시키기 위한 검색 전용 기능을 제공하는 AlgoliaSearch 라이브러리의 하위 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
4.2만
좋아요
6
Pub 점수
160

패키지 설치

flutter pub add algolia_client_search

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

algolia_client_search 패키지는 Algolia의 강력한 검색 및 탐색 기능을 애플리케이션에 통합하기 위해 설계된 Dart/Flutter 라이브러리입니다. 검색, 인덱스 관리, 여러 플랫폼에서 자동 완성 기능을 처리할 수 있는 깔끔하고 타입 안전한 API를 제공합니다. AlgoliaSearch 생태계의 일부로 개발되어 Flutter 앱에서 빠르고 관련성 높으며 확장 가능한 검색 경험을 제공할 수 있게 해줍니다. 실시간 결과, 필터링, 사용자 정의 순위 지정을 지원하여 전자상거래, 콘텐츠 탐색, 앱 내 탐색에 이상적입니다.

사용 사례

  • 전자상거래 제품 검색
  • 앱 내 콘텐츠 탐색
  • 실시간 자동 완성
  • 사용자 중심의 필터링
  • 검색을 통한 앱 내비게이션
  • 동적 콘텐츠 인덱싱

주요 기능

  • 빠르고 확장 가능한 검색
  • 피처 검색 지원
  • 자동 완성 및 오타 용인
  • 인덱스 관리 API
  • 실시간 결과 업데이트
  • 타입 안전한 Dart 인터페이스

적합한 대상

  • 강력한 검색 기능이 필요한 플러터 앱
  • Algolia 백엔드를 사용하는 개발자
  • 대규모 데이터셋을 가진 앱
  • 즉시 검색이 필요한 프로젝트
  • 개발자 경험을 우선시하는 팀

고려 사항

  • Algolia 계정과 API 키가 필요합니다
  • 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.

카테고리

의존성

의존성 목록 4 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.