2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"mlt": {
|
2015-03-24 12:03:35 -04:00
|
|
|
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-more-like-this.html",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["GET", "POST"],
|
|
|
|
"url": {
|
|
|
|
"path": "/{index}/{type}/{id}/_mlt",
|
|
|
|
"paths": ["/{index}/{type}/{id}/_mlt"],
|
|
|
|
"parts": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"id": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The document ID"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"index": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The name of the index"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2013-05-28 04:48:23 -04:00
|
|
|
"type" : "string",
|
2013-05-27 16:55:18 -04:00
|
|
|
"required" : true,
|
|
|
|
"description" : "The type of the document (use `_all` to fetch the first document matching the ID across all types)"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2015-02-10 08:01:49 -05:00
|
|
|
"source": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "The URL-encoded request definition"
|
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"boost_terms": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The boost factor"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"max_doc_freq": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The word occurrence frequency as count: words with higher occurrence in the corpus will be ignored"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"max_query_terms": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The maximum query terms to be included in the generated query"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2014-01-02 11:11:20 -05:00
|
|
|
"max_word_length": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The minimum length of the word: longer words will be ignored"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"min_doc_freq": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The word occurrence frequency as count: words with lower occurrence in the corpus will be ignored"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"min_term_freq": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
2014-11-02 18:36:06 -05:00
|
|
|
"description" : "The term frequency as percent: terms with lower occurrence in the source document will be ignored"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2014-01-02 11:11:20 -05:00
|
|
|
"min_word_length": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The minimum length of the word: shorter words will be ignored"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"mlt_fields": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "Specific fields to perform the query against"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"percent_terms_to_match": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "How many terms have to match in order to consider the document a match (default: 0.3)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"routing": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specific routing value"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"search_from": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The offset from which to return results"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"search_indices": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of indices to perform the query against (default: the index containing the document)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"search_scroll": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "A scroll search request definition"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"search_size": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The number of documents to return (default: 10)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"search_source": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "A specific search request definition (instead of using the request body)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"search_type": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "string",
|
2015-01-14 05:19:32 -05:00
|
|
|
"description" : "Specific search type (eg. `dfs_then_fetch`, `scan`, etc)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"search_types": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of types to perform the query against (default: the same type as the document)"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"stop_words": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A list of stop words to be ignored"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": {
|
2013-05-27 16:55:18 -04:00
|
|
|
"description" : "A specific search request definition"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|