View composer.json
{ | |
"name": "laravel/laravel", | |
"type": "project", | |
"description": "The Laravel Framework.", | |
"keywords": [ | |
"framework", | |
"laravel" | |
], | |
"license": "MIT", | |
"require": { |
View YouTubeHelper.php
<?php | |
namespace App\Extensions; | |
class YoutubeHelper | |
{ | |
public $youtube; | |
public $client; | |
public $appName = 'globworker'; | |
public $apiKey; |
View ChannelCommand.php
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use App\Channel; | |
class ChannelCommand extends Command | |
{ | |
/** |
View VideoSearch.php
static public function getVideoMapData($video){ | |
/** | |
* @var $video Video | |
* var/class | |
*/ | |
$homepageTags = $video->getHomePageTags(); | |
$homepageTagsArr = []; | |
foreach ($homepageTags as $hTag) { | |
if ($hTag->id === "" || !$hTag->id || $hTag->id === null) { | |
continue; |
View VideoSearch.php
public function indexVideosBulk($videos) | |
{ | |
$videosIndex = Yii::app()->params['videosIndex']; | |
/** | |
* @var $video Video | |
* var/class | |
*/ |
View VideoIndexCommand.php
public function actionBulk() | |
{ | |
/* | |
* Due to less data, dcouments are inserted one by one, otherwise we will change it to bulk insert. | |
*/ | |
$c = new CDbCriteria(); | |
$c->addCondition("status is null"); |
View oldquery.json
{ | |
"query": { | |
"nested": { | |
"path": "subtitles", | |
"query": { | |
"bool": { | |
"must": { | |
"match_phrase": { | |
"subtitles.content": "pretty good" | |
} |
View results_of_old_query.json
{ | |
"took": 132, | |
"timed_out": false, | |
"_shards": { | |
"total": 5, | |
"successful": 5, | |
"failed": 0 | |
}, | |
"hits": { | |
"total": 196, |
View scratch_159.json
{ | |
"query": { | |
"filtered": { | |
"must": [ | |
{ | |
"term": { | |
"flag": "valid" | |
} | |
}, | |
{ |
View oldresults.json
This file has been truncated, but you can view the full file.
{ | |
"took": 240, | |
"timed_out": false, | |
"_shards": { | |
"total": 5, | |
"successful": 5, | |
"failed": 0 | |
}, | |
"hits": { |
NewerOlder