2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"search": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/reference/api/search/",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["GET", "POST"],
|
|
|
|
"url": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"path": "/_search",
|
2013-06-04 10:33:24 -04:00
|
|
|
"paths": ["/_search", "/{index}/_search", "/{index}/{type}/_search"],
|
2013-05-24 06:02:42 -04:00
|
|
|
"parts": {
|
|
|
|
"index": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "list",
|
2013-09-09 07:33:46 -04:00
|
|
|
"default" : "_all",
|
2013-05-27 17:25:24 -04:00
|
|
|
"description" : "A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of document types to search; leave empty to perform the operation on all types"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"analyzer": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "The analyzer to use for the query string"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"analyze_wildcard": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether wildcard and prefix queries should be analyzed (default: false)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"default_operator": {
|
2013-05-27 17:25:24 -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
|
|
|
},
|
|
|
|
"df": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The field to use as default where no field prefix is given in the query string"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"explain": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether to return detailed information about score computation as part of a hit"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"fields": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of fields to return as part of a hit"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"from": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "Starting offset (default: 0)"
|
|
|
|
},
|
|
|
|
"ignore_indices": {
|
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["none","missing"],
|
|
|
|
"default" : "none",
|
|
|
|
"description" : "When performed on multiple indices, allows to ignore `missing` ones"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"indices_boost": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "Comma-separated list of index boosts"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"lenient": {
|
2013-05-27 17:25:24 -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
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"lowercase_expanded_terms": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether query terms should be lowercased"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"preference": {
|
2013-05-27 17:25:24 -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-27 17:25:24 -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-31 05:35:45 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of specific routing values"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"scroll": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "duration",
|
|
|
|
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
|
|
|
|
},
|
|
|
|
"search_type": {
|
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["query_then_fetch", "query_and_fetch", "dfs_query_then_fetch", "dfs_query_and_fetch", "count", "scan"],
|
|
|
|
"description" : "Search operation type"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"size": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "Number of hits to return (default: 10)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"sort": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of <field>:<direction> pairs"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"source": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The URL-encoded request definition using the Query DSL (instead of using request body)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"stats": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "Specific 'tag' of the request for logging and statistical purposes"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"suggest_field": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specify which field to use for suggestions"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"suggest_mode": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["missing", "popular", "always"],
|
|
|
|
"default" : "missing",
|
|
|
|
"description" : "Specify suggest mode"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"suggest_size": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "How many suggestions to return in response"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"suggest_text": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "text",
|
|
|
|
"description" : "The source text for which the suggestions should be returned"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"timeout": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "time",
|
|
|
|
"description" : "Explicit operation timeout"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"version": {
|
2013-05-27 17:25:24 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether to return document version as part of a hit"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2013-05-27 17:25:24 -04:00
|
|
|
"body": {
|
|
|
|
"description": "The search definition using the Query DSL"
|
|
|
|
}
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|