-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
Related to: Inconsistent FT.INFO results #2501
There are numerous 'nan' results returned from FT.INFO. v4.6.11 Example below:
(async () => { const redis = createClient({url:
redis://default:redis@localhost:12000}); await redis.connect(); await redis.ft.create('idx', { field: SchemaFieldTypes.TEXT }); let res = await redis.ft.info('idx') console.log(JSON.stringify(res)); await sleep(5000); res = await redis.ft.info('idx') console.log('\n' + JSON.stringify(res)); await redis.disconnect(); })();
`{"indexName":"idx","indexOptions":["key_type","HASH","prefixes",[""],"default_score","1"],"indexDefinition":{},"attributes":[],"numDocs":["bytes_collected",0],"maxDocId":["global_idle",0,"global_total",0,"index_capacity",128,"index_total",0],"numTerms":["dialect_1",0,"dialect_2",0,"dialect_3",0,"dialect_4",0],"numRecords":0,"invertedSzMb":0,"vectorIndexSzMb":0,"totalInvertedIndexBlocks":0,"offsetVectorsSzMb":"0","docTableSizeMb":62,"sortableValuesSizeMb":"0","keyTableSizeMb":"0","recordsPerDocAvg":"0","bytesPerRecordAvg":"0","offsetsPerTermAvg":"0","offsetBitsPerRecordAvg":"0","hashIndexingFailures":"nan","indexing":"nan","percentIndexed":"nan","gcStats":{"bytesCollected":"a"},"cursorStats":{},"stopWords":"0.025813476812708173"}
{"indexName":"idx","indexOptions":["key_type","HASH","prefixes",[""],"default_score","1"],"indexDefinition":{},"attributes":[],"numDocs":["bytes_collected",0],"maxDocId":["global_idle",0,"global_total",0,"index_capacity",128,"index_total",0],"numTerms":["dialect_1",0,"dialect_2",0,"dialect_3",0,"dialect_4",0],"numRecords":0,"invertedSzMb":0,"vectorIndexSzMb":0,"totalInvertedIndexBlocks":0,"offsetVectorsSzMb":"0","docTableSizeMb":62,"sortableValuesSizeMb":"0","keyTableSizeMb":"0","recordsPerDocAvg":"0","bytesPerRecordAvg":"0","offsetsPerTermAvg":"0","offsetBitsPerRecordAvg":"0","hashIndexingFailures":"nan","indexing":"nan","percentIndexed":"nan","gcStats":{"bytesCollected":"a"},"cursorStats":{},"stopWords":"1"}`
Node.js Version
18.3
Redis Server Version
7.2.4-86
Node Redis Version
4.6.11
Platform
Ubuntu 22.04.3
Logs
See above