1\将其改写为I'\''m就可以执行

2\

curl -u elastic:mypass -X GET "localhost:9200/_analyze?pretty"  -d 'analyzer=standard&text=this is a'\''1 test'

3\

curl -u elastic:mypass -X GET "10.16.1.1:9200/Index_name/_search?pretty" -H 'Content-Type: application/json' -d '
{
"_source":["post_time","id","last_update_time"],
"query": {
"wildcard":{
"id":"*1998*"
}
}
}
'
curl -u elastic:mypass -X GET "127.0.0.1:9200/my_index/_cat/mapping?pretty"
 

  

  

05-11 00:37