Skip to content

FT.Aggregate is giving extra empty row #368

@livinhigh

Description

@livinhigh

Thanks for reporting an issue in NRedisStack! Please update the appropriate text below, as much data as possible really helps!

NRedisStack Version: What version of the library are you using

Redis Stack Version: What is the version of redis stack where this issue happens?

Description: Description of the issue, ideally with sample code, and a stack trace.

image

Suppose I create an index as below and add 3 docs as below:

FT.CREATE 'myIndex1' ON HASH PREFIX 1 "doc:" SCHEMA title TEXT SORTABLE body TEXT flag TEXT
HSET doc:1 title "Hello World" body "This is a test document"
HSET doc:2 title "Hello Mars" body "This is a test2 document"
HSET doc:3 flag "true"

When running below aggregate command , there is an extra empty row in the end which is incorrect i believe?
Has anything changed recently for this to happen, because I remember the extra row was not coming earlier

FT.AGGREGATE "myIndex1" "*"
LOAD 2 "title" "body"
SORTBY 2 "@title" ASC
LIMIT 0 10

image

Metadata

Metadata

Assignees

Labels

waiting-for-feedbackWe need additional information before we can continue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions