Skip to content

Commit f30a601

Browse files
committed
feat(kotlin): searchWithRuleContextBuyer
1 parent 6d849d1 commit f30a601

File tree

1 file changed

+12
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)