Skip to content

Commit 6d849d1

Browse files
committed
feat(kotlin): searchWithOptionalFilters
1 parent ba15e90 commit 6d849d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{> snippets/import}}
2+
import com.algolia.client.model.search.*
3+
4+
suspend fun searchWithOptionalFilters() {
5+
{{> snippets/init}}
6+
7+
val optionalFilters = reduceLabelsToFilters(labels)
8+
val searchParams = SearchParamsObject(query = "<YOUR_SEARCH_QUERY>", optionalFilters = optionalFilters)
9+
10+
client.{{#dynamicSnippet}}searchWithSearchParams{{/dynamicSnippet}}
11+
}

0 commit comments

Comments
 (0)