पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.6.0

typesense

Typesense सर्च इंजन के HTTP API को प्राप्त करने के लिए Dart क्लाइंट लाइब्रेरी।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
9.4 हज़ार
लाइक
61
Pub अंक
130

पैकेज इंस्टॉल करें

flutter pub add typesense

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक डार्ट क्लाइंट लाइब्रेरी जो अपने HTTP API के माध्यम से Typesense सर्च इंजन के साथ बिना किसी दिक्कत के एकीकरण की अनुमति देती है। यह सर्च ऑपरेशन, संग्रह प्रबंधन और विभिन्न प्लेटफॉर्मों जैसे Android, iOS, Web, macOS, Windows और Linux पर डॉक्यूमेंट्स को इंडेक्स करने के लिए एक सरल तरीका प्रदान करती है। फ्लटर ऐप्लिकेशन में तेज़, टाइपो-टॉलरेंट सर्च कार्यक्षमता की तलाश करने वाले डेवलपर्स के लिए डिज़ाइन की गई, यह निम्न स्तर के HTTP इंटरैक्शन को छिपाती है जबकि लचीलापन और प्रदर्शन बनाए रखती है।

उपयोग

  • Flutter ऐप्स में रियल-टाइम सर्च
  • टाइपो सहिष्णुता के साथ पूर्ण-पाठ खोज
  • दस्तावेज़ संग्रहों का निर्देशांक और प्रबंधन
  • स्वचालित पूर्ण करने वाली सुविधा बनाना
  • मौजूदा Typesense सर्वर के साथ एकीकरण
  • मोबाइल और वेब एप्लिकेशन में सर्च करें

मुख्य विशेषताएँ

  • प्रकार सुरक्षित API वраФ퍯र
  • प्लेटफॉर्म के अनुकूलता
  • खोज, सूचकांकन और स्कीमा प्रबंधन के लिए समर्थन
  • Flutter pub के साथ आसान सेटअप
  • एम्बेडेड त्रुटि संभाल
  • हल्का और कार्यक्षम

इनके लिए उपयुक्त

  • Typesense का उपयोग करने वाले Flutter विकासकर्ता
  • त्वरित खोज क्षमता की आवश्यकता वाले ऐप्स
  • क्रॉस-प्लेटफॉर्म सर्च की आवश्यकता वाले प्रोजेक्ट्स
  • बाहरी सर्च इंजन को एकीकृत करने वाले विकासकर्ता
  • खोज-भारी उपयोगकर्ता इंटरफेस बनाने वाली टीमें

विचार योग्य बातें

  • एक चल रहे Typesense सर्वर की आवश्यकता है
  • HTTP API कार्यक्षमता तक सीमित
  • ऑफलाइन खोज समर्थन नहीं है
  • नेटवर्क कनेक्टिविटी पर निर्भर करता है
  • जटिल जांच तर्क का हस्तक्षेप निर्माण
  • स्थानीय केवल खोज की आवश्यकता के लिए उपयुक्त नहीं

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Typesense

pub package github actions status pub likes pub points pub downloads

Dart client library for accessing the HTTP API of Typesense search engine.

Note: This package is still under development. Some existing APIs might change or new APIs might be available in the future.

Installation

Add typesense as a dependency in your pubspec.yaml file.

dependencies:
  typesense: ^0.6.0

Usage

Read the documentation here: https://typesense.org/docs/api/

Tests are also a good place to know how the library works internally: test

Note: When using this library in a user-facing app, please be sure to use an API Key that only allows search operations instead of the master API key. See keys.dart for an example of how to generate a search only API key.

See Configuration class for a list of all client configuration options.

Examples
import 'dart:io';

import 'package:typesense/typesense.dart';


void main() async {
  // Replace with your configuration
  final host = InternetAddress.loopbackIPv4.address, protocol = Protocol.http;
  final config = Configuration(
    // Api key
    'xyz',
    nodes: {
      Node(
        protocol,
        host,
        port: 7108,
      ),
      Node.withUri(
        Uri(
          scheme: 'http',
          host: host,
          port: 8108,
        ),
      ),
      Node(
        protocol,
        host,
        port: 9108,
      ),
    },
    numRetries: 3, // A total of 4 tries (1 original try + 3 retries)
    connectionTimeout: const Duration(seconds: 2),
  );

  final client = Client(config);

  final searchParameters = {
    'q': 'stark',
    'query_by': 'company_name',
    'filter_by': 'num_employees:>100',
    'sort_by': 'num_employees:desc'
  };

  await client.collection('companies').documents.search(searchParameters);
}

The examples that walk you through on how to use the client: main.dart

Make sure to README beforehand.

Compatibility

Typesense Server typesense-dart
>= v30.0 >= v0.6.0
>= v0.24.0 >= v0.5.0
>= v0.22.0 >= v0.3.0
>= v0.21.0 >= v0.1.1

Contributing

Visit CONTRIBUTING.md

Credits

This library is authored and maintained by our awesome community of contributors:

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 2 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।