我想在图中描述一些API的模型.是否有标准如何将属性标记为readonly
?这些属性由系统设置,不能由API使用者修改.
目前我滥用了类图表符号private
和public
属性.但我对此并不满意.
谢谢你的想法:)
我想显示Instagram中与特定主题标签相关的公共内容(一切正常)但我无法在access_token
每次过期时续订.
("不要认为你的access_token永远有效." - https://www.instagram.com/developer/authentication/)
手动更新它不是一个选项,我必须确保access_token
在任何时候有效,无需重新验证.
有什么想法或问题吗?:)
我查询使用通配符(索引interactive*
),以获得这两个指数的所有文件interactive-foo*
和interactive-bar*
.
对于我的一些聚合,所有指数都是相关的,但对于其他指数只有interactive-foo*
OR interactive-bar*
.所以我只想过滤聚合中的这些"子指标".
GET _search
{
"query":{
"bool": {
"must": [
{
"range": {
"timestamp": {
"gte": "2017-08-01 00:00:00",
"lte": "2017-08-31 23:59:59"
}
}
},
{
"match": {
"key": "SOME_KEY"
}
}
]
}
},
"size":0,
"aggs": {
// This one should be filtered and just count for interactive-bar*
"bar_count": {
"value_count": {
"field": "SOME_FIELD"
}
},
// This one should be filtered and just count for interactive-foo*
"foo_count": {
"value_count": …
Run Code Online (Sandbox Code Playgroud)