Question about partial replace of document

I experimenting with redisearch and find strange behavior.

If I crete index:

FT.CREATE test “NOOFFSETS” “NOHL” “NOFIELDS” “NOFREQS” “STOPWORDS 0” “SCHEMA” “tags” “TAG” “price” “NUMERIC” “SORTABLE” “NOINDEX”

FT.ADD test 1 1 NOSAVE FIELDS tags “A1,A2” price 20

then as expected, can changed numeric field by

FT.ADD test 1 1 NOSAVE REPLACE PARTIAL FIELDS price 10

but for partial update of tags field

FT.ADD test 1 1 NOSAVE REPLACE PARTIAL FIELDS tags “A1,A4”

got:

(error) Error updating document

But if remove NOSAVE - all works correctly. But if I have no need to store documents

Thanks,

Oleg

Obviosly if you use NOSAVE, then the index has nowhere to load the data not provided for indexing. It should be clearer in the comments, but the document must be saved to do partial updates.

Yes, it’s understandable that I need all indexable fields for update, but what for fields marked with “NOINDEX”.

from the POV of redisearch, updating is not really updating - we delete the old reference to the document and create a new one.
So anything needs to be saved when reindexing.

Ok, I understand, thanks for clarification.