Created
July 14, 2014 16:39
-
-
Save ArFeRR/97671e54515dfd7be012 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"filtered":{ | |
"filter":{ | |
"bool":{ | |
"must":[ | |
{ | |
"bool":{ | |
"should":[ | |
{ | |
"bool":{ | |
"must":[ | |
{ | |
"term":{ | |
"productsOptionValues.productOption":"weight" | |
} | |
}, | |
{ | |
"term":{ | |
"productsOptionValues.value":"2,7 kg" | |
} | |
} | |
] | |
} | |
} | |
] | |
} | |
}, | |
{ | |
"bool":{ | |
"should":[ | |
{ | |
"bool":{ | |
"must":[ | |
{ | |
"term":{ | |
"productsOptionValues.productOption":"resolution" | |
} | |
}, | |
{ | |
"term":{ | |
"productsOptionValues.value":"1600x900" | |
} | |
} | |
] | |
} | |
}, | |
{ | |
"bool":{ | |
"must":[ | |
{ | |
"term":{ | |
"productsOptionValues.productOption":"resolution" | |
} | |
}, | |
{ | |
"term":{ | |
"productsOptionValues.value":"1920x1080" | |
} | |
} | |
] | |
} | |
} | |
] | |
} | |
} | |
] | |
} | |
} | |
} | |
} |
Хотя я просто скопипастил со статьи на хабре, и поменял только путь к сущности продукта
Попробуй добавить три пробела, там явно с размером отступа проблема.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Подскажи, пожалуйста. При выполнении php app/console fos:elastica:populate, выдает ошибку - [Symfony\Component\Yaml\Exception\ParseException]
Indentation problem at line 36 (near " product:").
Хотя я просто скопипастил со статьи на хабре, и поменял только путь к сущности продукта