@@ -35,5 +35,5 @@ |
||
35 | 35 | if (isset($count['hits']['total'])) { |
36 | 36 | $nof = (int) $count['hits']['total']; |
37 | 37 | } |
38 | - return ['app_title'=>$index . "/" . $type ,'data'=>['index' => $index, 'type' => $type, 'documents'=> $documents, 'from' => $from, 'nof'=>$nof, 'size' => $size,'sort'=>$sort, 'query'=>$query]]; |
|
38 | + return ['app_title'=>$index . "/" . $type, 'data'=>['index' => $index, 'type' => $type, 'documents'=> $documents, 'from' => $from, 'nof'=>$nof, 'size' => $size, 'sort'=>$sort, 'query'=>$query]]; |
|
39 | 39 | } |
@@ -7,12 +7,12 @@ |
||
7 | 7 | $indices = $ES->indices()->getAliases(); |
8 | 8 | $indexes = []; |
9 | 9 | foreach ($indices as $index => $alieses) { |
10 | - if (strpos($index, ".") !== 0 ){ |
|
10 | + if (strpos($index, ".") !== 0) { |
|
11 | 11 | $params['index'] = $index; |
12 | 12 | $index_data = []; |
13 | 13 | $index_data['name'] = $index; |
14 | 14 | $index_info = $ES->indices()->getMapping($params); |
15 | - foreach ($index_info[$index]['mappings'] as $type => $type_info ) { |
|
15 | + foreach ($index_info[$index]['mappings'] as $type => $type_info) { |
|
16 | 16 | if ($type == '_default_') { continue; } |
17 | 17 | $index_data['types'][] = $type; |
18 | 18 | } |