@@ -1109,7 +1109,7 @@ You can send multiple queries with a single API call using a batch of queries:
11091109# - 1st query targets index `categories`
11101110# - 2nd and 3rd queries target index `products`
11111111results = self .client.multiple_queries([{" indexName" : " categories" , " query" : myQueryString, " hitsPerPage" : 3 }
1112- , {" indexName" : " categories" , " query" : myQueryString, " hitsPerPage" : 3 , " tagFilters " : " promotion" }
1112+ , {" indexName" : " categories" , " query" : myQueryString, " hitsPerPage" : 3 , " filters " : " promotion" }
11131113 , {" indexName" : " categories" , " query" : myQueryString, " hitsPerPage" : 10 }])
11141114
11151115print results[" results" ]
@@ -1949,12 +1949,12 @@ Example:
19491949
19501950``` python
19511951# Iterate with a filter over the index
1952- res = self .index.browse_all({" query" : " test" , " numericFilters " : " i<42" })
1952+ res = self .index.browse_all({" query" : " test" , " filters " : " i<42" })
19531953for hit in res
19541954 # Do something
19551955
19561956# Retrieve the next cursor from the browse method
1957- res = self .index.browse_from({" query" : " test" , " numericFilters " : " i<42" }, None )
1957+ res = self .index.browse_from({" query" : " test" , " filters " : " i<42" }, None )
19581958print res[" cursor" ]
19591959```
19601960
@@ -2180,7 +2180,7 @@ You may have a single index containing **per user** data. In that case, all reco
21802180``` python
21812181# generate a public API key for user 42. Here, records are tagged with:
21822182# - 'user_XXXX' if they are visible by user XXXX
2183- public_key = client.generate_secured_api_key(' YourSearchOnlyApiKey' , {' tagFilters ' : ' user_42' })
2183+ public_key = client.generate_secured_api_key(' YourSearchOnlyApiKey' , {' filters ' : ' user_42' })
21842184```
21852185
21862186This public API key can then be used in your JavaScript code as follow:
@@ -2205,7 +2205,7 @@ You can mix rate limits and secured API keys by setting a `userToken` query para
22052205``` python
22062206# generate a public API key for user 42. Here, records are tagged with:
22072207# - 'user_XXXX' if they are visible by user XXXX
2208- public_key = client.generate_secured_api_key(' YourSearchOnlyApiKey' , {' tagFilters ' : ' user_42' , ' userToken' : ' user_42' })
2208+ public_key = client.generate_secured_api_key(' YourSearchOnlyApiKey' , {' filters ' : ' user_42' , ' userToken' : ' user_42' })
22092209```
22102210
22112211This public API key can then be used in your JavaScript code as follow:
0 commit comments