Skip to content

Commit 7bc2b90

Browse files
committed
feat(kotlin): searchWithRuleContexts
1 parent f30a601 commit 7bc2b90

File tree

1 file changed

+14
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)