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

I have the following query which works just fine:

curl -XGET  '
http://localhost:9200/demo/news/1177421/_mlt?mlt_fields=title,content&fields=id&min_doc_freq=1&pretty=true
'

But the following JSON version returns incorrect results:

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


What am I doing wrong?

Aleem

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/15fb6158-97cc-4267-8286-5a8d2318336d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to