Skip to content

Commit 50c10c6

Browse files
Merge branch 'EXP-246-geosearch-polygon-geojson' of github.com:meilisearch/documentation into EXP-246-geosearch-polygon-geojson
2 parents f6dd76a + 01d6acf commit 50c10c6

7 files changed

+46
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<CodeGroup>
2+
3+
```bash cURL
4+
curl \
5+
-X GET 'MEILISEARCH_URL/indexes/INDEX_UID/settings/vector-store'
6+
```
7+
</CodeGroup>

snippets/samples/code_samples_primary_field_guide_update_document_primary_key.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ client.index('books').update(primary_key: 'title')
3030
```
3131

3232
```go Go
33-
client.Index("books").UpdateIndex("title")
33+
client.Index("books").UpdateIndex(&meilisearch.UpdateIndexRequestParams{
34+
PrimaryKey: "title",
35+
})
3436
```
3537

3638
```csharp C#
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<CodeGroup>
2+
3+
```bash cURL
4+
curl \
5+
-X DELETE 'MEILISEARCH_URL/indexes/INDEX_UID/settings/vector-store'
6+
```
7+
</CodeGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<CodeGroup>
2+
3+
```go Go
4+
client.SwapIndexes([]SwapIndexesParams{
5+
{Indexes: []string{"indexA", "indexB"}, Rename: true},
6+
{Indexes: []string{"indexX", "indexY"}, Rename: true},
7+
})
8+
```
9+
</CodeGroup>

snippets/samples/code_samples_update_an_index_1.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ client.index('movies').update(primary_key: 'movie_id')
2828
```
2929

3030
```go Go
31-
client.Index("movies").UpdateIndex("id")
31+
client.Index("movies").UpdateIndex(&meilisearch.UpdateIndexRequestParams{
32+
PrimaryKey: "id",
33+
})
3234
```
3335

3436
```csharp C#
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<CodeGroup>
2+
3+
```go Go
4+
client.Index("movies").UpdateIndex(&meilisearch.UpdateIndexRequestParams{
5+
UID: "movies_index_rename",
6+
})
7+
```
8+
</CodeGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<CodeGroup>
2+
3+
```bash cURL
4+
curl \
5+
-X PUT 'MEILISEARCH_URL/indexes/INDEX_UID/settings/vector-store' \
6+
-H 'Content-Type: application/json' \
7+
--data-binary '"experimental"'
8+
```
9+
</CodeGroup>

0 commit comments

Comments
 (0)