Skip to content

Commit 18b35fe

Browse files
fix options
1 parent 967a2d5 commit 18b35fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mapping/mapping_vectors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (fm *FieldMapping) processVector(propertyMightBeVector interface{},
149149
fieldName := getFieldName(pathString, path, fm)
150150
options := fm.Options()
151151
field := document.NewVectorFieldWithIndexingOptions(fieldName, indexes, vector,
152-
fm.Dims, fm.Similarity, fm.VectorIndexOptimizedFor, fm.GPU, options)
152+
fm.Dims, fm.Similarity, fm.VectorIndexOptimizedFor, options)
153153
context.doc.AddField(field)
154154

155155
// "_all" composite field is not applicable for vector field
@@ -176,7 +176,7 @@ func (fm *FieldMapping) processVectorBase64(propertyMightBeVectorBase64 interfac
176176
fieldName := getFieldName(pathString, path, fm)
177177
options := fm.Options()
178178
field := document.NewVectorFieldWithIndexingOptions(fieldName, indexes, decodedVector,
179-
fm.Dims, fm.Similarity, fm.VectorIndexOptimizedFor, fm.GPU, options)
179+
fm.Dims, fm.Similarity, fm.VectorIndexOptimizedFor, options)
180180
context.doc.AddField(field)
181181

182182
// "_all" composite field is not applicable for vector_base64 field

0 commit comments

Comments
 (0)