这是indexloc提供的服务,不要输入任何密码

typesense_search 0.1.2 copy "typesense_search: ^0.1.2" to clipboard
typesense_search: ^0.1.2 copied to clipboard

Dart client library for wrapping the Typesense community library.

Installation #

Getting Started #

Instanciate the service

    final searchService = TypesenseSearch(
        apiKey: TYPESENSE_API_KEY, host: InternetAddress.loopbackIPv4);

Filter #

To use filtering you have to call the search method.

Future<dynamic> search<T>(String collectionName,
      {required Parameters parameters,
      required T Function(Map<String, dynamic>) fromJson}) async { } 

The object apiResponse can be used like so if it is not grouped by request:

print("total item found: ${apiResponse.found}");
print("Facet count: ${apiResponse.facetCount}");
print("items: ${apiResponse.hits}");

If it is a grouped by request:

print("total item found: ${apiResponse.foundDocs}");
print("total group found: ${apiResponse.found}");
print("Facet count: ${apiResponse.facetCount}");
print("items: ${apiResponse.groupedHits}");
1
likes
140
points
279
downloads

Publisher

unverified uploader

Weekly Downloads

Dart client library for wrapping the Typesense community library.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

typesense

More

Packages that depend on typesense_search