node-redis
node-redis copied to clipboard
FT.INFO return value 'total_indexing_time' is not handled
Description
FT.INFO return value 'total_indexing_time' is not handled
The FT.INFO returns:
41) "total_indexing_time"
42) "10.733000000000001"
43) "indexing"
44) "0"
The problem is that the index 41) 'total_indexing_time' in the code is interpreted as the value indexing: rawReply[41], in the INFO.ts. So, the client reports back '10.733000000000001' for the 'indexing', which should have been 44) '0'.
Node.js Version
20
Redis Server Version
6.2.13
Node Redis Version
4.6.11
Platform
mac
Logs
> FT.INFO gm_brugerdata_idx_v2
1) "index_name"
2) "gm_brugerdata_idx_v2"
3) "index_options"
4) (empty list or set)
5) "index_definition"
6) 1) "key_type"
2) "JSON"
3) "prefixes"
4) 1) "gm:brugerdata:"
5) "filter"
6) "exists(@brugerEmail) && @brugerEmail!=\"\""
7) "default_score"
8) "1"
7) "attributes"
8) 1) 1) "identifier"
2) "$.brugerRejse.rejseSlug"
3) "attribute"
4) "rejseSlug"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
2) 1) "identifier"
2) "$.brugerRejse.rejseVersion"
3) "attribute"
4) "rejseVersion"
5) "type"
6) "TEXT"
7) "WEIGHT"
8) "1"
3) 1) "identifier"
2) "$.brugerRejse.rejseUrl"
3) "attribute"
4) "rejseUrl"
5) "type"
6) "TEXT"
7) "WEIGHT"
8) "1"
4) 1) "identifier"
2) "$.brugerRejse.oprettet"
3) "attribute"
4) "oprettet"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
5) 1) "identifier"
2) "$.brugerRejse.opdateret"
3) "attribute"
4) "opdateret"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
6) 1) "identifier"
2) "$.brugerRejse.gennemfoert"
3) "attribute"
4) "gennemfoert"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
7) 1) "identifier"
2) "$.notifikationStatusser[*].mailTrinId"
3) "attribute"
4) "mailTrinId"
5) "type"
6) "TEXT"
7) "WEIGHT"
8) "1"
8) 1) "identifier"
2) "$.notifikationStatusser[*].status"
3) "attribute"
4) "mailStatus"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
9) 1) "identifier"
2) "$.notifikationStatusser[*].antalForsoeg"
3) "attribute"
4) "antalForsoeg"
5) "type"
6) "NUMERIC"
10) 1) "identifier"
2) "$.notifikationStatusser[*].oprettet"
3) "attribute"
4) "oprettetStatus"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
11) 1) "identifier"
2) "$.notifikationStatusser[*].opdateret"
3) "attribute"
4) "opdateretStatus"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
12) 1) "identifier"
2) "$.brugerRejse.bruger.email"
3) "attribute"
4) "brugerEmail"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
13) 1) "identifier"
2) "$.brugerRejse.bruger.cvr"
3) "attribute"
4) "brugerCvr"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
14) 1) "identifier"
2) "$.brugerRejse.bruger.id"
3) "attribute"
4) "brugerId"
5) "type"
6) "TAG"
7) "SEPARATOR"
8) ""
15) 1) "identifier"
2) "$.brugerRejse.bruger.navn"
3) "attribute"
4) "brugerNavn"
5) "type"
6) "TEXT"
7) "WEIGHT"
8) "1"
9) "num_docs"
10) "86"
11) "max_doc_id"
12) "86"
13) "num_terms"
14) "291"
15) "num_records"
16) "2180"
17) "inverted_sz_mb"
18) "0.0086507797241210938"
19) "vector_index_sz_mb"
20) "0"
21) "total_inverted_index_blocks"
22) "1942"
23) "offset_vectors_sz_mb"
24) "0.0014743804931640625"
25) "doc_table_size_mb"
26) "0.010653495788574219"
27) "sortable_values_size_mb"
28) "0"
29) "key_table_size_mb"
30) "0.0034847259521484375"
31) "records_per_doc_avg"
32) "25.348836898803711"
33) "bytes_per_record_avg"
34) "4.1610093116760254"
35) "offsets_per_term_avg"
36) "0.62247705459594727"
37) "offset_bits_per_record_avg"
38) "9.114222526550293"
39) "hash_indexing_failures"
40) "0"
41) "total_indexing_time"
42) "10.733000000000001"
43) "indexing"
44) "0"
45) "percent_indexed"
46) "1"
47) "number_of_uses"
48) "17"
49) "gc_stats"
50) 1) "bytes_collected"
2) "0"
3) "total_ms_run"
4) "0"
5) "total_cycles"
6) "0"
7) "average_cycle_time_ms"
8) "nan"
9) "last_run_time_ms"
10) "0"
11) "gc_numeric_trees_missed"
12) "0"
13) "gc_blocks_denied"
14) "0"
51) "cursor_stats"
52) 1) "global_idle"
2) "0"
3) "global_total"
4) "0"
5) "index_capacity"
6) "128"
7) "index_total"
8) "0"
53) "dialect_stats"
54) 1) "dialect_1"
2) "0"
3) "dialect_2"
4) "0"
5) "dialect_3"
6) "0"