Skip to content

Commit f49d7fe

Browse files
committed
fix: use SteVecSelector for JsonAccessor (not SteVecTerm)
Both JsonPath and JsonAccessor specify which field to access in the JSON structure, so both need SteVecSelector to generate the selector index ("s" field) that eql_v2."->" expects.
1 parent b0f70cc commit f49d7fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/cipherstash-proxy/src/proxy/zerokms

packages/cipherstash-proxy/src/proxy/zerokms/zerokms.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ impl EncryptionService for ZeroKms {
172172
})
173173
.unwrap_or(EqlOperation::Store),
174174

175-
// JsonAccessor generates a term for SteVec field access (-> operator)
175+
// JsonAccessor generates a selector for SteVec field access (-> operator)
176176
EqlTermVariant::JsonAccessor => col
177177
.config
178178
.indexes
179179
.iter()
180180
.find(|i| matches!(i.index_type, IndexType::SteVec { .. }))
181-
.map(|index| EqlOperation::Query(&index.index_type, QueryOp::SteVecTerm))
181+
.map(|index| EqlOperation::Query(&index.index_type, QueryOp::SteVecSelector))
182182
.unwrap_or(EqlOperation::Store),
183183
};
184184

0 commit comments

Comments
 (0)