Skip to content

Commit 46f8ee1

Browse files
authored
Fix saas demo link (#3396)
1 parent d557b92 commit 46f8ee1

8 files changed

+43
-7
lines changed

learn/security/multitenancy_tenant_tokens.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You must generate tokens in your application. The quickest method to generate te
3232

3333
Meilisearch developed an in-app search demo using multi-tenancy in a SaaS CRM. It only allows authenticated users to search through contacts, companies, and deals belonging to their organization.
3434

35-
Check out this [sample application](https://saas.meilisearch.com/utm_source=docs) Its code is publicly available in a dedicated [GitHub repository](https://github.com/meilisearch/saas-demo/).
35+
Check out this [sample application](https://saas.meilisearch.com/?utm_source=docs) Its code is publicly available in a dedicated [GitHub repository](https://github.com/meilisearch/saas-demo/).
3636

3737
<Tip>
3838
You can also use tenant tokens in role-based access control (RBAC) systems. Consult [How to implement RBAC with Meilisearch](https://blog.meilisearch.com/role-based-access-guide/) on Meilisearch's official blog for more information.

snippets/samples/code_samples_analytics_event_bind_event_1.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
```bash cURL
44
curl \
5-
-X POST 'https://edge.meilisearch.com/events' \
5+
-X POST 'https://PROJECT_URL/events' \
66
-H 'Content-Type: application/json' \
77
-H 'Authorization: Bearer DEFAULT_SEARCH_API_KEY' \
8-
-H 'X-MS-USER-ID: MEILISEARCH_USER_ID' \
8+
-H 'X-MS-USER-ID: SEARCH_USER_ID' \
99
--data-binary '{
1010
"eventType": "click",
1111
"eventName": "Search Result Clicked",
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<CodeGroup>
2+
3+
```bash cURL
4+
curl \
5+
-X POST 'https://PROJECT_URL/events' \
6+
-H 'Content-Type: application/json' \
7+
-H 'Authorization: Bearer DEFAULT_SEARCH_API_KEY' \
8+
--data-binary '{
9+
"eventType": "click",
10+
"userId": "SEARCH_USER_ID",
11+
"eventName": "Search Result Clicked",
12+
"indexUid": "products",
13+
"objectId": "0",
14+
"position": 0
15+
}'
16+
```
17+
</CodeGroup>

snippets/samples/code_samples_analytics_event_click_1.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
```bash cURL
44
curl \
5-
-X POST 'https://edge.meilisearch.com/events' \
5+
-X POST 'https://PROJECT_URL/events' \
66
-H 'Content-Type: application/json' \
77
-H 'Authorization: Bearer DEFAULT_SEARCH_API_KEY' \
88
--data-binary '{
99
"eventType": "click",
1010
"eventName": "Search Result Clicked",
1111
"indexUid": "products",
12+
"userId": "SEARCH_USER_ID",
13+
"queryUid": "019a01b7-a1c2-7782-a410-bb1274c81393",
1214
"objectId": "0",
15+
"objectName": "DOCUMENT_DESCRIPTION",
1316
"position": 0
1417
}'
1518
```

snippets/samples/code_samples_analytics_event_conversion_1.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22

33
```bash cURL
44
curl \
5-
-X POST 'https://edge.meilisearch.com/events' \
5+
-X POST 'https://PROJECT_URL/events' \
66
-H 'Content-Type: application/json' \
77
-H 'Authorization: Bearer DEFAULT_SEARCH_API_KEY'
88
--data-binary '{
99
"eventType": "conversion",
1010
"eventName": "Product Added To Cart",
1111
"indexUid": "products",
12+
"userId": "SEARCH_USER_ID",
1213
"objectId": "0",
14+
"objectName": "DOCUMENT_DESCRIPTION",
1315
"position": 0
1416
}'
1517
```

snippets/samples/code_samples_compact_index_1.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,12 @@
44
curl \
55
-X POST 'MEILISEARCH_URL/indexes/INDEX_UID/compact'
66
```
7+
8+
```python Python
9+
client.index('movies').compact()
10+
```
11+
12+
```java Java
13+
client.index("INDEX_NAME").compact();
14+
```
715
</CodeGroup>

snippets/samples/code_samples_getting_started_add_documents.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ $client->index('movies')->addDocuments($movies);
7878
// <dependency>
7979
// <groupId>com.meilisearch.sdk</groupId>
8080
// <artifactId>meilisearch-java</artifactId>
81-
// <version>0.16.1</version>
81+
// <version>0.17.0</version>
8282
// <type>pom</type>
8383
// </dependency>
8484

8585
// For Gradle
8686
// Add the following line to the `dependencies` section of your `build.gradle`:
8787
//
88-
// implementation 'com.meilisearch.sdk:meilisearch-java:0.16.1'
88+
// implementation 'com.meilisearch.sdk:meilisearch-java:0.17.0'
8989

9090
// In your .java file:
9191
import com.meilisearch.sdk;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<CodeGroup>
2+
3+
```go Go
4+
client.Index("INDEX_UID").Compact();
5+
```
6+
</CodeGroup>

0 commit comments

Comments
 (0)