more_like_this POST/JSON equivalent of GET

(aleemb) #1

My first day with ElasticSearch and it's wonderful.

The following query works fine:

curl -XGET '

But the following 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 missing?

My goal is to get results with just the id/title of the related posts.


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