"more_like_this" : {
"fields" : ["name.first", "name.last"],
"like_text" : "text like this one",
"min_term_freq" : 1,
"max_query_terms" : 12
}
}
then "like_text" is required. Is there any reason like_text is required in this instance? Why not just return similar documents as per the url-only request when like_text is absent?
then "like_text" is required. Is there any reason like_text is
required in this instance? Why not just return similar documents as
per the url-only request when like_text is absent?
The URL version of MLT uses a document (whose ID you pass in) to build
the like_text. With the query DSL version, ES can't build the text for
you, so you need to do it yourself
On Thursday, January 5, 2012 10:26:53 AM UTC-5, Clinton Gormley wrote:
The URL version of MLT uses a document (whose ID you pass in) to build
the like_text. With the query DSL version, ES can't build the text for
you, so you need to do it yourself
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.