Http api query error

curl -X POST 'http://localhost:9312/sql/' -d "query=select * from test where match('@keyword =php')"

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   180    0   114  100    66    561    325 --:--:-- --:--:-- --:--:--   561/+invalid command (code=8239, len=1815027784)
curl: (56) Recv failure: Connection was reset

query error: invalid command (code=8239, len=1815027784)
WARNING: ill-formed client request (length=1815027784 out of bounds)
WARNING: ill-formed client request (command=8239, SEARCHD_COMMAND_TOTAL=17)

You seem to be sending the request to port 9312. Thats typically the API port, so thats likely that searchd ddoesnt understand your request

You want searchd listening on HTTP protocol, so can make requests