Skip to content

Conversation

@ginkelsoft-development
Copy link
Owner

Added validation to skip token generation for fields that don't have an encrypted cast. This prevents unnecessary indexing and ensures that only truly encrypted data gets searchable tokens in the index.

Changes:

  • Added hasEncryptedCast() helper method to check field cast type
  • Updated updateSearchIndex() to validate encrypted cast before processing
  • Improved efficiency by skipping non-encrypted fields early

Added validation to skip token generation for fields that don't have
an encrypted cast. This prevents unnecessary indexing and ensures that
only truly encrypted data gets searchable tokens in the index.

Changes:
- Added hasEncryptedCast() helper method to check field cast type
- Updated updateSearchIndex() to validate encrypted cast before processing
- Improved efficiency by skipping non-encrypted fields early
@ginkelsoft-development ginkelsoft-development merged commit 56b0175 into develop Oct 13, 2025
0 of 8 checks passed
ginkelsoft-development added a commit that referenced this pull request Oct 14, 2025
…rypted-fields

fix: only generate search tokens for fields with encrypted cast
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