Skip to content

Conversation

@bsbodden
Copy link
Collaborator

…on PR #389)

Add skipDecodeFields parameter to query builders to control binary field decoding:

  • FilterQuery, VectorQuery, VectorRangeQuery, TextQuery
  • Accepts List or varargs of field names
  • Returns immutable copy via getSkipDecodeFields()

Implementation details:

  • Field names that should not be decoded from binary format
  • Useful for binary data like embeddings and image data
  • Validates field names cannot be null
  • Maintains backward compatibility (defaults to empty list)

Test coverage:

  • 10 unit tests in SkipDecodeFieldsTest
  • Tests for all query types
  • Validation tests for null handling
  • Varargs convenience method tests

Python reference:

  • skip_decode parameter in return_fields() method
  • Prevents automatic decoding of specified binary fields
  • Allows retrieval of raw bytes for embeddings/images

Refs: redis/redis-vl-python#389
Fixes: #252

…on PR #389)

Add skipDecodeFields parameter to query builders to control binary field decoding:
- FilterQuery, VectorQuery, VectorRangeQuery, TextQuery
- Accepts List<String> or varargs of field names
- Returns immutable copy via getSkipDecodeFields()

Implementation details:
- Field names that should not be decoded from binary format
- Useful for binary data like embeddings and image data
- Validates field names cannot be null
- Maintains backward compatibility (defaults to empty list)

Test coverage:
- 10 unit tests in SkipDecodeFieldsTest
- Tests for all query types
- Validation tests for null handling
- Varargs convenience method tests

Python reference:
- skip_decode parameter in return_fields() method
- Prevents automatic decoding of specified binary fields
- Allows retrieval of raw bytes for embeddings/images

Refs: redis/redis-vl-python#389
Fixes: #252
@bsbodden bsbodden merged commit e1053e0 into main Oct 23, 2025
4 checks passed
@bsbodden bsbodden deleted the bsb/skip_decode_param_fix branch October 23, 2025 03:16
@bsbodden bsbodden self-assigned this Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants