| @@ 48-61 (lines=14) @@ | ||
| 45 | * |
|
| 46 | * @return array |
|
| 47 | */ |
|
| 48 | protected function getCondition(Criterion $criterion) |
|
| 49 | { |
|
| 50 | $filters = array(); |
|
| 51 | ||
| 52 | foreach ($criterion->value as $value) { |
|
| 53 | $filters[] = array( |
|
| 54 | 'prefix' => array( |
|
| 55 | 'locations_doc.path_string_id' => $value, |
|
| 56 | ), |
|
| 57 | ); |
|
| 58 | } |
|
| 59 | ||
| 60 | return $filters; |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * Map field value to a proper Elasticsearch filter representation. |
|
| @@ 48-61 (lines=14) @@ | ||
| 45 | * |
|
| 46 | * @return array |
|
| 47 | */ |
|
| 48 | protected function getCondition(Criterion $criterion) |
|
| 49 | { |
|
| 50 | $filters = array(); |
|
| 51 | ||
| 52 | foreach ($criterion->value as $value) { |
|
| 53 | $filters[] = array( |
|
| 54 | 'prefix' => array( |
|
| 55 | 'path_string_id' => $value, |
|
| 56 | ), |
|
| 57 | ); |
|
| 58 | } |
|
| 59 | ||
| 60 | return $filters; |
|
| 61 | } |
|
| 62 | ||
| 63 | /** |
|
| 64 | * Map field value to a proper Elasticsearch representation. |
|