Apologies if this is a newbie issue, but following the documentation (Manticore Search Manual: Connecting to the server > HTTP), I cannot get any of the JSON api to work and it always returns the error: {“error”:“Error parsing json query: unable to parse: (null)”}.
Version: manticore-2.7.0-180611-3d60c8e-release-stemmer-rhel7-bin
My RT index definition:
index testrt
{
type = rt
rt_mem_limit = 128M
path = /var/lib/manticore/testrt
rt_field = title
rt_field = content
rt_attr_uint = gid
}
I have “listen = localhost:8080:http” in my searchd setting and it works fine against the /search API, but if I invoke the following:
curl -X POST ‘http://localhost:8080/json/search’ -d ‘{“index”:“testrt”,“query”:{“match”:{“title”:“text”}}}’
I get: {“error”:“Error parsing json query: unable to parse: (null)”}
Any tips?