typesense_search

Creator: coderz1093

Last updated:

0 purchases

typesense_search Image
typesense_search Images
Add to Cart

Description:

typesense search

Installation #
Getting Started #
Instanciate the service
final searchService = TypesenseSearch(
apiKey: TYPESENSE_API_KEY, host: InternetAddress.loopbackIPv4);
copied to clipboard
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 { }
copied to clipboard
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}");
copied to clipboard
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}");
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.