Skip to content

Commit 9e8b5ec

Browse files
committed
fix mappings
Signed-off-by: Mingshi Liu <mingshl@amazon.com>
1 parent d8a3265 commit 9e8b5ec

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

_query-dsl/specialized/script-score.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,15 +390,14 @@ This approach enables fine-grained semantic matching between queries and documen
390390

391391
The vector field must be mapped as either an `object` (recommended) or `float` type.
392392

393-
We recommend mapping the vector field as an `object` with `"enabled": false` because it stores raw vectors without parsing, improving performance:
393+
We recommend mapping the vector field as an `object` because it stores raw vectors without parsing, improving performance:
394394

395395
```json
396396
{
397397
"mappings": {
398398
"properties": {
399399
"my_vector": {
400-
"type": "object",
401-
"enabled": false
400+
"type": "object"
402401
}
403402
}
404403
}

_search-plugins/search-relevance/rerank-by-field-late-interaction.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Note the `model_id` from the response; you'll use it in subsequent steps.
118118

119119
## Step 2: Create an index
120120

121-
Create an index with mappings optimized for storing both multi-vectors and single k-NN vectors. The `colbert_vectors` field is stored as an `object` with `enabled: false` for optimal performance. The `knn_vector` field is configured for the `hnsw` algorithm, with the number of dimensions matching the model's number of dimensions. The `image` field stores Base64-encoded image data as a `keyword`:
121+
Create an index with mappings optimized for storing both multi-vectors and single k-NN vectors. The `colbert_vectors` field is stored as an `object`. The `knn_vector` field is configured for the `hnsw` algorithm, with the number of dimensions matching the model's number of dimensions. The `image` field stores Base64-encoded image data as a `keyword`:
122122

123123

124124
```json
@@ -140,8 +140,7 @@ PUT /multimodal_docs
140140
"type": "keyword"
141141
},
142142
"colbert_vectors": {
143-
"type": "object",
144-
"enabled": false
143+
"type": "object"
145144
},
146145
"knn_vector": {
147146
"type": "knn_vector",

0 commit comments

Comments
 (0)