2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"explain": {
|
2015-03-24 12:03:35 -04:00
|
|
|
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["GET", "POST"],
|
|
|
|
"url": {
|
|
|
|
"path": "/{index}/{type}/{id}/_explain",
|
|
|
|
"paths": ["/{index}/{type}/{id}/_explain"],
|
|
|
|
"parts": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"id": {
|
2013-05-26 11:00:41 -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-26 11:00:41 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The name of the index"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The type of the document"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"analyze_wildcard": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"analyzer": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The analyzer for the query string query"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"default_operator": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["AND","OR"],
|
|
|
|
"default" : "OR",
|
|
|
|
"description" : "The default operator for query string query (AND or OR)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"df": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The default field for query string query (default: _all)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"fields": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type": "list",
|
|
|
|
"description" : "A comma-separated list of fields to return in the response"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"lenient": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether format-based query failures (such as providing text to a numeric field) should be ignored"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2015-03-13 15:51:41 -04:00
|
|
|
"lowercase_expanded_terms": {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether query terms should be lowercased"
|
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"parent": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The ID of the parent document"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"preference": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "string",
|
2013-06-17 10:43:02 -04:00
|
|
|
"description" : "Specify the node or shard the operation should be performed on (default: random)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"q": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Query in the Lucene query string syntax"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"routing": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specific routing value"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"source": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The URL-encoded query definition (instead of using the request body)"
|
2013-09-23 07:23:25 -04:00
|
|
|
},
|
|
|
|
"_source": {
|
|
|
|
"type" : "list",
|
|
|
|
"description" : "True or false to return the _source field or not, or a list of fields to return"
|
|
|
|
},
|
|
|
|
"_source_exclude": {
|
|
|
|
"type" : "list",
|
|
|
|
"description" : "A list of fields to exclude from the returned _source field"
|
|
|
|
},
|
|
|
|
"_source_include": {
|
|
|
|
"type" : "list",
|
|
|
|
"description" : "A list of fields to extract and return from the _source field"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
2013-09-25 08:08:18 -04:00
|
|
|
}
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"body": {
|
2013-05-26 11:00:41 -04:00
|
|
|
"description" : "The query definition using the Query DSL"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|