Skip to content

Commit 29456da

Browse files
Merge #179
179: Add test for `filter` paramter with spaces r=brunoocasali a=ShakyaCsun # Pull Request ## What does this PR do? Fixes #96 <!-- Please link the issue you're trying to fix with this PR, if none then please create an issue first. --> ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Srishan Shakya <[email protected]>
2 parents 6033bbc + 752fc3f commit 29456da

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/search_test.dart

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,19 @@ void main() {
9191
expect(result.hits, hasLength(1));
9292
});
9393

94+
test('filter parameter with spaces', () async {
95+
var index = await createBooksIndex();
96+
var response = await index
97+
.updateSettings(IndexSettings(
98+
filterableAttributes: ['tag'],
99+
))
100+
.waitFor();
101+
expect(response.status, 'succeeded');
102+
var result =
103+
await index.search('prince', filter: 'tag = "Epic fantasy"');
104+
expect(result.hits, hasLength(1));
105+
});
106+
94107
test('filter parameter with number', () async {
95108
var index = await createBooksIndex();
96109
var response = await index

0 commit comments

Comments
 (0)