成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專欄INFORMATION COLUMN

ElasticSearch - API Conventions

ghnor / 2403人閱讀

摘要:例如實(shí)際調(diào)用特殊字符要報(bào)文體省略轉(zhuǎn)化為只獲取字段且中字段,按中字段降序排序

Date math support in index names

Limiting the number of indices that are searched reduces the load on the cluster and improves execution performance.

form:

 

例如:
GET /,,/_search
實(shí)際調(diào)用特殊字符要encode:GET /%3Clogstash-%7Bnow%2Fd-2d%7D%3E%2C%3Clogstash-%7Bnow%2Fd-1d%7D%3E%2C%3Clogstash-%7Bnow%2Fd%7D%3E/_search
報(bào)文體省略

Common options

appending ?pretty=true to any request made, the JSON returned will be pretty formatted (use it for debugging only!).

"size_in_bytes": 1024 轉(zhuǎn)化為 "size_in_bytes": "1kb" by adding ?human=true to the query string.

Response Filtering

GET /_cluster/state?filter_path=metadata.indices.*.stat*
Responds:
{
  "metadata" : {
    "indices" : {
      "twitter": {"state": "open"}
    }
  }
}   

the ** wildcard can be used to include fields without knowing the exact path of the field.

exclude one or more fields by prefixing the filter with the char -:

GET /_count?filter_path=-_shards 

both inclusive and exclusive filters can be combined in the same expression.

raw value of a field, like the _source field.

# 只獲取hits.hits._source字段且_source中title字段,按_source中rating字段降序排序
GET /_search?filter_path=hits.hits._source&_source=title&sort=rating:desc

Enabling stack traces: url append error_trace=true

URL-based access control

elasticsearch.yml file:

rest.action.multi.allow_explicit_index: false

Elasticsearch will reject requests that have an explicit index specified in the request body.

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/68460.html

相關(guān)文章

  • JavaScript Style Guide and Coding Conventions

    摘要:點(diǎn)擊查看原文總結(jié)一下變量名函數(shù)名用駝峰,以小寫字母開頭逗號(hào)和操作符之后要有空格縮進(jìn)為個(gè)空格其實(shí)現(xiàn)在有很多是個(gè)的語(yǔ)句的結(jié)尾有分號(hào)復(fù)合語(yǔ)句左花括號(hào)在首行末尾,且之前有空格右花括號(hào)另起一行,之前沒(méi)有空格結(jié)尾沒(méi)有括號(hào)對(duì)象左花括號(hào)不換行,之前有空格 點(diǎn)擊查看原文 總結(jié)一下: 變量名函數(shù)名用駝峰,以小寫字母開頭 逗號(hào)和操作符之后要有空格 縮進(jìn)為4個(gè)空格(其實(shí)現(xiàn)在有很多是2個(gè)的 nodejs ...

    ormsf 評(píng)論0 收藏0
  • 從原理層面掌握@SessionAttribute的使用【一起學(xué)Spring MVC】

    摘要:見(jiàn)名之意,它是處理器,也就是解析這個(gè)注解的核心。管理通過(guò)標(biāo)注了的特定會(huì)話屬性,存儲(chǔ)最終是委托了來(lái)實(shí)現(xiàn)。只會(huì)清楚注解放進(jìn)去的,并不清除放進(jìn)去的它的唯一實(shí)現(xiàn)類實(shí)現(xiàn)也簡(jiǎn)單。在更新時(shí),模型屬性與會(huì)話同步,如果缺少,還將添加屬性。 每篇一句 不是你當(dāng)上了火影大家就認(rèn)可你,而是大家都認(rèn)可你才能當(dāng)上火影 前言 該注解顧名思義,作用是將Model中的屬性同步到session會(huì)話當(dāng)中,方便在下一次請(qǐng)求中...

    ARGUS 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

閱讀需要支付1元查看
<