我有以下文件索引:
{name: 'Device1', type: 'start', 'eventTime': '2013-02-19 12:00:00'}
{name: 'Device2', type: 'start', 'eventTime': '2013-02-19 12:02:00'}
{name: 'Device1', type: 'stop', 'eventTime': '2013-02-19 12:45:00'}
{name: 'Device2', type: 'stop', 'eventTime': '2013-02-19 12:50:00'}
Run Code Online (Sandbox Code Playgroud)
我想创建一个查询,这将EVENTTIME的之间的时间差,通过设备名称和字段类型的问候刻面返回对我来说是新领域.对于示例,它应该是:
{name: 'Device1', 'type': 'it really doesnt matter', eventTime: 'also doesnt matter', duration: '00:45:00'}
{name 'Device2', 'type': 'it really doesnt matter', eventTime: 'also doesnt matter', duration: '00:48:00'}
Run Code Online (Sandbox Code Playgroud)
是否可以使用弹性搜索查询语言?
我有API调用的问题.我想为用户提供最近的媒体.我对以下端点进行API调用:https: //api.instagram.com/v1/users/1638607411/media/recent?count = 100&client_id = MY_CLIENT_ID
回应是:
...
["images":protected]=>
array(3) {
["low_resolution"]=>
array(3) {
["url"]=>
string(114) "https://scontent.cdninstagram.com/hphotos-xfa1/t51.2885-15/s320x320/e35/11264735_1688306834723686_1802219154_n.jpg"
["width"]=>
int(320)
["height"]=>
int(320)
}
["thumbnail"]=>
array(3) {
["url"]=>
string(114) "https://scontent.cdninstagram.com/hphotos-xfa1/t51.2885-15/s150x150/e35/11264735_1688306834723686_1802219154_n.jpg"
["width"]=>
int(150)
["height"]=>
int(150)
}
["standard_resolution"]=>
array(3) {
["url"]=>
string(114) "https://scontent.cdninstagram.com/hphotos-xfa1/t51.2885-15/s612x612/e35/11264735_1688306834723686_1802219154_n.jpg"
["width"]=>
int(612)
["height"]=>
int(612)
}
}
Run Code Online (Sandbox Code Playgroud)
...
我想使用"standard_resolution"图像,但它不起作用.当我想直接获取它时,我收到状态代码:404 Unsupported Size
此外,当我将url中的"s612x612"更改为"s640x640"时 - 它正在工作.
看起来像Instagram API bug,我已经报道了,但也许有人经历过类似的事情?
是否有可能在Project透视图中使用.gitignore中的文件变灰?我试图在PHPStorm配置中找到这个设置,我也试图用另一种方案颜色制作一个新的范围,但可能不可能使用.gitignore制作一个范围.