Pas besoin de spécifier « curl -X POST » dans ces cas là
This commit is contained in:
parent
f9c20802aa
commit
73f21b1133
|
@ -1231,7 +1231,7 @@ $ curl localhost:9200/planet/hacker/1?pretty=true
|
|||
Mise à jour du champ âge :
|
||||
|
||||
~~~
|
||||
$ curl -X POST localhost:9200/planet/hacker/1/_update -d '{"doc": {"age": 19}}'
|
||||
$ curl localhost:9200/planet/hacker/1/_update -d '{"doc": {"age": 19}}'
|
||||
{"_index":"planet","_type":"hacker","_id":"1","_version":2,"result":"updated","_shards":{"total":2,"successful":1,"failed":0}}
|
||||
~~~
|
||||
|
||||
|
@ -1297,7 +1297,7 @@ $ curl -X PUT localhost:9200/planet/hacker/3 -d '
|
|||
Recherchons ceux qui ont pour hobby *rollerblading* :
|
||||
|
||||
~~~
|
||||
$ curl -X POST localhost:9200/planet/hacker/_search?pretty=true -d '
|
||||
$ curl localhost:9200/planet/hacker/_search?pretty=true -d '
|
||||
{
|
||||
"query": {
|
||||
"match": {
|
||||
|
|
|
@ -46,7 +46,7 @@ Par défaut, le démon est configuré pour capturer les logs HTTP et les renvoye
|
|||
On peut tester à l'aide la commande [curl](https://wiki.evolix.org/HowtocURL) :
|
||||
|
||||
~~~
|
||||
$ curl -X POST -d 'json={"json":"message"}' http://localhost:8888/debug.test
|
||||
$ curl -d 'json={"json":"message"}' http://localhost:8888/debug.test
|
||||
~~~
|
||||
|
||||
## Configuration
|
||||
|
|
|
@ -176,7 +176,7 @@ curl -s -X GET https://$DOMAIN/indexes/$INDEXE/settings -H "Authorization: Beare
|
|||
* Supprimer tout ce qui est liée à un filtre
|
||||
|
||||
~~~
|
||||
curl -s -X POST https://$DOMAIN/indexes/$INDEXE/documents/delete \
|
||||
curl -s https://$DOMAIN/indexes/$INDEXE/documents/delete \
|
||||
-H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
|
||||
--data-binary '{ "filter": "source = redmine" }' |jq '' -r
|
||||
~~~
|
||||
|
|
Loading…
Reference in a new issue