Commandes curls pour jouer avec l'attribue des filtres
This commit is contained in:
parent
8697485733
commit
6503fb5894
|
@ -161,9 +161,21 @@ curl -s -X GET https://$DOMAIN/indexes/$INDEXE/settings -H "Authorization: Beare
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
curl -s -X POST https://$DOMAIN/indexes/$INDEXE/documents/delete \
|
curl -s -X POST https://$DOMAIN/indexes/$INDEXE/documents/delete \
|
||||||
-H "Authorization: Bearer $KEY" \
|
-H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
|
||||||
-H 'Content-Type: application/json' \
|
--data-binary '{ "filter": "source = redmine" }' |jq '' -r
|
||||||
--data-binary '{
|
~~~
|
||||||
"filter": "source = redmine"
|
|
||||||
}' |jq '' -r
|
* Lister les attribues de filtrage
|
||||||
|
|
||||||
|
~~~
|
||||||
|
curl -s -X GET https://$DOMAIN/indexes/$INDEXE/settings/filterable-attributes \
|
||||||
|
-H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' |jq '' -r
|
||||||
|
~~~
|
||||||
|
|
||||||
|
* Appliquer des attribues de filtrage
|
||||||
|
|
||||||
|
~~~
|
||||||
|
curl -s -X PUT https://$DOMAIN/indexes/$INDEXE/settings/filterable-attributes \
|
||||||
|
-H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
|
||||||
|
--data-binary '["source", "categories"]' |jq '' -r
|
||||||
~~~
|
~~~
|
Loading…
Reference in a new issue