Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ add_movies_json_1: |-
use futures::executor::block_on;

fn main() { block_on(async move {
let client = Client::new("http://localhost:7700", Some("masterKey"));
let client = Client::new("MEILISEARCH_URL", Some("masterKey"));

// reading and parsing the file
let mut file = File::open("movies.json")
Expand Down Expand Up @@ -1109,7 +1109,7 @@ getting_started_add_documents: |-
use futures::executor::block_on;

fn main() { block_on(async move {
let client = Client::new("http://localhost:7700", Some("aSampleMasterKey"));
let client = Client::new("MEILISEARCH_URL", Some("aSampleMasterKey"));

// Reading and parsing the file
let mut file = File::open("movies.json")
Expand Down Expand Up @@ -1382,11 +1382,11 @@ delete_a_key_1: |-
.delete_key(&key)
.await?;
authorization_header_1:
let client = Client::new("http://localhost:7700", Some("MASTER_KEY"));
let client = Client::new("MEILISEARCH_URL", Some("MASTER_KEY"));
let keys = client
.get_keys()
.await
.unwrap();
.get_keys()
.await
.unwrap();
tenant_token_guide_generate_sdk_1: |-
let api_key = "B5KdX2MY2jV6EXfUs6scSfmC...";
let api_key_uid = "6062abda-a5aa-4414-ac91-ecd7944c0f8d";
Expand All @@ -1397,7 +1397,7 @@ tenant_token_guide_generate_sdk_1: |-
.generate_tenant_token(api_key_uid, search_rules, api_key, expires_at)
.unwrap();
tenant_token_guide_search_sdk_1: |-
let front_end_client = Client::new("http://localhost:7700", Some(token));
let front_end_client = Client::new("MEILISEARCH_URL", Some(token));
let results: SearchResults<Patient> = front_end_client
.index("patient_medical_records")
.search()
Expand Down Expand Up @@ -1430,14 +1430,14 @@ multi_search_1: |-
.await
.unwrap();
get_experimental_features_1: |-
let client = Client::new("http://localhost:7700", Some("apiKey"));
let client = Client::new("MEILISEARCH_URL", Some("apiKey"));
let features = ExperimentalFeatures::new(&client);
let res = features
.get()
.await
.unwrap();
update_experimental_features_1: |-
let client = Client::new("http://localhost:7700", Some("apiKey"));
let client = Client::new("MEILISEARCH_URL", Some("apiKey"));
let features = ExperimentalFeatures::new(&client);
features.set_metrics(true)
let res = features
Expand Down Expand Up @@ -1623,13 +1623,13 @@ reset_localized_attribute_settings_1: |-
.await
.unwrap();
basic_security_tutorial_admin_1: |-
let client = Client::new("http://localhost:7700", Some("DEFAULT_ADMIN_API_KEY"));
let client = Client::new("MEILISEARCH_URL", Some("DEFAULT_ADMIN_API_KEY"));
let task = client
.create_index("medical_records", Some("id"))
.await
.unwrap();
basic_security_tutorial_search_1: |-
let client = Client::new("http://localhost:7700", Some("DEFAULT_SEARCH_API_KEY"));
let client = Client::new("MEILISEARCH_URL", Some("DEFAULT_SEARCH_API_KEY"));
let index = client.index("medical_records");
index
.search()
Expand Down
Loading