Skip to content

Instantly share code, notes, and snippets.

@ArFeRR
Created July 14, 2014 16:39
Show Gist options
  • Save ArFeRR/97671e54515dfd7be012 to your computer and use it in GitHub Desktop.
Save ArFeRR/97671e54515dfd7be012 to your computer and use it in GitHub Desktop.
{
"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"
}
}
]
}
}
]
}
}
]
}
}
}
}
@VolyaPers
Copy link

Подскажи, пожалуйста. При выполнении php app/console fos:elastica:populate, выдает ошибку - [Symfony\Component\Yaml\Exception\ParseException]
Indentation problem at line 36 (near " product:").

Хотя я просто скопипастил со статьи на хабре, и поменял только путь к сущности продукта

@popov654
Copy link

Хотя я просто скопипастил со статьи на хабре, и поменял только путь к сущности продукта

Попробуй добавить три пробела, там явно с размером отступа проблема.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment