Closed
Description
$index=new \MacFJA\RediSearch\Index($this->name,$this->searchConnect);
//dump($index);
$res=$index->addDocumentFromArray([
'zid'=>'553',
'bank_number'=>'666',
'today'=>'2022-07-21',
'shou'=>0,
'zhi'=>0,
'bank_balance'=>0
],$this->name.':'.'553');
echo $res;
is error: assert(is_array($rawDefinitions));
/**
* @return null|array<string,mixed>|mixed
*/
public function getIndexDefinition(?string $key = null)
{
$rawDefinitions = self::getValue($this->rawLines, 'index_definition');
assert(is_array($rawDefinitions));
$data = self::getPairs($rawDefinitions);
if (!is_string($key)) {
return $data;
}
return $data[$key] ?? null;
}
-rawLines: array:48 [▼
0 => true
1 => true
2 => true
3 => []
4 => true
5 => array:6 [▶]
6 => true
7 => array:6 [▶]
8 => true
9 => "0"
10 => true
11 => "0"
12 => true
13 => "0"
14 => true
15 => "0"
16 => true
17 => "0"
18 => true
19 => "0"
20 => true
21 => "0"
22 => true
23 => "0"
24 => true
25 => "0"
26 => true
27 => "0"
28 => true
29 => "0"
30 => true
31 => "-nan"
32 => true
33 => "-nan"
34 => true
35 => "-nan"
36 => true
37 => "-nan"
38 => true
39 => "0"
40 => true
41 => "0"
42 => true
43 => "1"
44 => true
45 => array:14 [▶]
46 => true
47 => array:8 [▶]