Skip to content

Instantly share code, notes, and snippets.

View mxkh's full-sized avatar

Maksym Khartanovych mxkh

  • Kyiv
View GitHub Profile
<?php
declare(strict_types=1);
namespace Parser;
/**
* Class ResponseParser
*
* @package Parser
{
"aggregations":{
"brand_id":{
"filter":{
"bool":{
"must":[
{
"terms":{
"color_id":[
12
{
"query": {
"nested": {
"path": "search_data.string_facets",
"filter": {
"bool": {
"must": [
{
"term": {
"search_data.string_facets.name": "manufacturer"
{
"filter": {
"nested": {
"path": "search_data.string_facets",
"filter": {
"bool": {
"must": [
{
"term": {
"search_data.string_facets.name": "manufacturer"
{
"settings": {
"index": {
"creation_date": "1489519251358",
"analysis": {
"filter": {
"russian_stemmer": {
"type": "stemmer",
"language": "russian"
},
<?php
declare(strict_types=1);
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use UmberFirm\Bundle\CustomerBundle\DataObject\CustomerSocialDataObject;
@mxkh
mxkh / promoted_vehicle_repo.php
Last active July 25, 2016 07:22
Code examples
<?php
namespace frontend\modules\v1\repositories\promotedVehicle;
use frontend\modules\v1\models\PromotedVehicle;
use frontend\modules\v1\models\vehicle\VehicleQuery;
use yii\helpers\ArrayHelper;
/**