一、参考网址:

https://zhuanlan.zhihu.com/p/95163799

二、参考语法描述

Parameters: index – A comma-separated list of index names to search; use _all or empty string to perform the operation on all indicesdoc_type – A comma-separated list of document types to search; leave empty to perform the operation on all typesbody – The search definition using the Query DSL_source – True or false to return the _source field or not, or a list of fields to return_source_exclude – A list of fields to exclude from the returned _source field_source_include – A list of fields to extract and return from the _source field_source_excludes – A list of fields to exclude from the returned _source field_source_includes – A list of fields to extract and return from the _source fieldallow_no_indices – Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified)allow_partial_search_results – Set to false to return an overall failure if the request would produce partial results. Defaults to True, which will allow partial results in the case of timeouts or partial failuresanalyze_wildcard – Specify whether wildcard and prefix queries should be analyzed (default: false)analyzer – The analyzer to use for the query stringbatched_reduce_size – The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large., default 512default_operator – The default operator for query string query (AND or OR), default ‘OR’, valid choices are: ‘AND’, ‘OR’df – The field to use as default where no field prefix is given in the query stringdocvalue_fields – A comma-separated list of fields to return as the docvalue representation of a field for each hitexpand_wildcards – Whether to expand wildcard expression to concrete indices that are open, closed or both., default ‘open’, valid choices are: ‘open’, ‘closed’, ‘none’, ‘all’explain – Specify whether to return detailed information about score computation as part of a hitfrom_ – Starting offset (default: 0)ignore_throttled – Whether specified concrete, expanded or aliased indices should be ignored when throttledignore_unavailable – Whether specified concrete indices should be ignored when unavailable (missing or closed)lenient – Specify whether format-based query failures (such as providing text to a numeric field) should be ignoredmax_concurrent_shard_requests – The number of concurrent shard requests this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests, default ‘The default grows with the number of nodes in the cluster but is at most 256.’pre_filter_shard_size – A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on it’s rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint., default 128preference – Specify the node or shard the operation should be performed on (default: random)q – Query in the Lucene query string syntaxrequest_cache – Specify if request cache should be used for this request or not, defaults to index level settingrest_total_hits_as_int – This parameter is ignored in this version. It is used in the next major version to control whether the rest response should render the total.hits as an object or a number, default Falserouting – A comma-separated list of specific routing valuesscroll – Specify how long a consistent view of the index should be maintained for scrolled searchsearch_type – Search operation type, valid choices are: ‘query_then_fetch’, ‘dfs_query_then_fetch’seq_no_primary_term – Specify whether to return sequence number and primary term of the last modification of each hitsize – Number of hits to return (default: 10)sort – A comma-separated list of <field>:<direction> pairsstats – Specific ‘tag’ of the request for logging and statistical purposesstored_fields – A comma-separated list of stored fields to return as part of a hitsuggest_field – Specify which field to use for suggestionssuggest_mode – Specify suggest mode, default ‘missing’, valid choices are: ‘missing’, ‘popular’, ‘always’suggest_size – How many suggestions to return in responsesuggest_text – The source text for which the suggestions should be returnedterminate_after – The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.timeout – Explicit operation timeouttrack_scores – Whether to calculate and return scores even if they are not used for sortingtrack_total_hits – Indicate if the number of documents that match the query should be trackedtyped_keys – Specify whether aggregation and suggester names should be prefixed by their respective types in the responseversion – Specify whether to return document version as part of a hit
©著作权归作者所有:来自51CTO博客作者wx592bc92b285c7的原创作品,如需转载,请注明出处,否则将追究法律责任

你的鼓励让我更有动力

赞赏

0人进行了赞赏支持

更多相关文章

  1. maven 插件用于打不同环境的版本包
  2. compiler插件,定义编译打包的jdk版本
  3. ORA-00069: cannot acquire lock
  4. win10系统,开机一直转圈圈,不能进系统【解决办法】
  5. Elasticsearch 之 API调用
  6. ELK 之 elasticsearch集群安装
  7. 上传自己的镜像被拒绝denied: requested access to the resource
  8. Linux必会技能
  9. PyCharm启动报错 计算机丢失 api-ms-win-crt-runtimel1-1-0.dll

随机推荐

  1. pytest中print的坑
  2. 程序员到底该怎么给女朋友挑礼物
  3. 互联网骨干网间的连接(NAP和BGP)
  4. Android中自带的SQLite数据库
  5. 抄答案就是了,两套详细的设计方案,解决头疼
  6. 利用深度学习识别滑动验证码缺口位置
  7. 升级华为网络设备(路由器,防火墙和交换机),提
  8. 如何用一条命令将网页转成电脑 App
  9. 2021.1.18
  10. MySQL+Flask,在本地实现一个API接口。