Skip to content

Commit

Permalink
feat(kotlin): searchWithOptionalFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluf22 committed Jan 24, 2025
1 parent ba15e90 commit 6d849d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/kotlin/guides/search/searchWithOptionalFilters.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{> snippets/import}}
import com.algolia.client.model.search.*

suspend fun searchWithOptionalFilters() {
{{> snippets/init}}

val optionalFilters = reduceLabelsToFilters(labels)
val searchParams = SearchParamsObject(query = "<YOUR_SEARCH_QUERY>", optionalFilters = optionalFilters)

client.{{#dynamicSnippet}}searchWithSearchParams{{/dynamicSnippet}}
}

0 comments on commit 6d849d1

Please sign in to comment.