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

outdated

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/

53
likes
0
pub points
91%
popularity

Publisher

verified publishertypesense.org

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, equatable, http

More

Packages that depend on typesense