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