typesense 0.5.1 copy "typesense: ^0.5.1" to clipboard
typesense: ^0.5.1 copied to clipboard

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

example/example.md

import 'dart:io';

import 'package:typesense/typesense.dart';


void main() async {
  final host = InternetAddress.loopbackIPv4.address, protocol = Protocol.http;
  final config = Configuration(
    // Replace with your configuration
    '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);
  
  await client.collections.retrieve();
}

For an exhaustive list of examples, visit typesense-dart/example/console-simple/

54
likes
140
points
3.46k
downloads

Publisher

verified publishertypesense.org

Weekly Downloads

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

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

crypto, http

More

Packages that depend on typesense