more_like_this POST/JSON equivalent of GET

(aleemb) #1

Hello, my first day with ElasticSearch and it's wonderful so far.

I have the following query which works just fine:

curl -XGET '

But the following JSON version returns incorrect results:

curl -XPOST 'http://localhost:9200/demo/news/1177421/_mlt' -d '{
"more_like_this" : {
"fields": ["title", "content"],
"ids": ["1177421"],
"min_doc_freq": 1
"fields":["id", "title"]

What am I doing wrong?


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(system) #2