We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d9afc6 commit 37aace2Copy full SHA for 37aace2
1 file changed
lib/segment/src/index/plain_payload_index.rs
@@ -105,12 +105,12 @@ impl PayloadIndex for PlainPayloadIndex {
105
106
fn set_indexed(
107
&mut self,
108
- _field: PayloadKeyTypeRef,
109
- _payload_schema: impl Into<PayloadFieldSchema>,
+ field: PayloadKeyTypeRef,
+ payload_schema: impl Into<PayloadFieldSchema>,
110
_hw_counter: &HardwareCounterCell,
111
) -> OperationResult<()> {
112
- // there are no indexes in the plain index
113
- Ok(())
+ // No need to build index, just set the field as indexed
+ self.apply_index(field.clone(), payload_schema.into(), vec![])
114
}
115
116
fn drop_index(&mut self, field: PayloadKeyTypeRef) -> OperationResult<()> {
0 commit comments