More like this query not working on 1.7


(Tapan Gupta) #1

GET /XXX/stories/_search
{
"more_like_this" : {
"like_text" : "Don't hate",
"min_term_freq" : 1,
"max_query_terms" : 12
}
}

This is giving me parsing exception.


(Tapan Gupta) #2

GET /XXX/stories/_search
{
"query": {
"more_like_this" : {
"like_text" : "Don't hate",
"min_term_freq" : 1,
"max_query_terms" : 12
}
}
}

Figured out it needs to be under query. But strange thing is it gave me nothing back.
I am sure at least 200+ documents had that text


(system) #3