Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void main() async {
var client = MeiliSearchClient('http://127.0.0.1:7700', 'masterKey');

// An index where books are stored.
var index = await client.createIndex('books', primaryKey: 'book_id');
var index = await client.createIndex('books');

var documents = [
{ 'book_id': 123, 'title': 'Pride and Prejudice' },
Expand Down
10 changes: 5 additions & 5 deletions lib/src/search_result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class SearchResult {
this.query,
this.nbHits,
this.exhaustiveNbHits,
this.facetDistribution,
this.facetsDistribution,
this.exhaustiveFacetsCount,
});

Expand All @@ -29,10 +29,10 @@ class SearchResult {
/// Whether [nbHits] is exhaustive
final bool exhaustiveNbHits;

/// [Distribution of the given facets](https://docs.meilisearch.com/reference/features/search_parameters.html#the-facets-distribution)
final dynamic facetDistribution;
/// Distribution of the given facets
final dynamic facetsDistribution;

/// Whether [facetDistribution] is exhaustive
/// Whether [facetsDistribution] is exhaustive
final bool exhaustiveFacetsCount;

/// Query originating the response
Expand All @@ -47,7 +47,7 @@ class SearchResult {
processingTimeMs: map['processingTimeMs'] as int,
nbHits: map['nbHits'] as int,
exhaustiveNbHits: map['exhaustiveNbHits'] as bool,
facetDistribution: map['facetDistribution'],
facetsDistribution: map['facetsDistribution'],
exhaustiveFacetsCount: map['exhaustiveFacetsCount'] as bool,
);
}
Expand Down