Commit d03cf39
committed
fix: only generate search tokens for fields with encrypted cast
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 early1 parent 6975c73 commit d03cf39
1 file changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| |||
264 | 269 | | |
265 | 270 | | |
266 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
267 | 289 | | |
268 | 290 | | |
269 | 291 | | |
| |||
0 commit comments