You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/front_end/search_bar_for_docs.mdx
+7-19Lines changed: 7 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,29 +13,15 @@ This tutorial will guide you through the steps of building a relevant and powerf
13
13
14
14
## Run a Meilisearch instance
15
15
16
-
First of all, you need your documentation content to be scraped and pushed into a Meilisearch instance.
17
-
18
-
You can install and run Meilisearch on your machine using `curl`.
19
-
20
-
```bash
21
-
curl -L https://install.meilisearch.com | sh
22
-
./meilisearch --master-key=MASTER_KEY
23
-
```
24
-
25
-
We provide a few [other installation methods](/learn/self_hosted/getting_started_with_self_hosted_meilisearch#setup-and-installation).
26
-
27
-
Meilisearch is open-source and can run either on your server or on any cloud provider.
16
+
First, create a new Meilisearch project on Meilisearch Cloud. You can also [install and run Meilisearch locally or in another cloud service](/learn/self_hosted/getting_started_with_self_hosted_meilisearch#setup-and-installation).
28
17
29
18
<Capsuleintent="note">
30
-
31
19
The host URL and the API key you will provide in the next steps correspond to the credentials of this Meilisearch instance.
32
-
In the example above, the host URL is `http://localhost:7700` and the API key is `MASTER_KEY`.
33
-
34
20
</Capsule>
35
21
36
22
## Scrape your content
37
23
38
-
The Meili team provides and maintains a [scraper tool](https://github.com/meilisearch/docs-scraper) to automatically read the content of your website and store it into an index in Meilisearch.
24
+
The Meilisearch team provides and maintains a [scraper tool](https://github.com/meilisearch/docs-scraper) to automatically read the content of your website and store it into an index in Meilisearch.
39
25
40
26
### Configuration file
41
27
@@ -98,7 +84,7 @@ You can run the scraper with Docker. With our local Meilisearch instance set up
getmeili/docs-scraper:latest pipenv run ./docs_scraper config.json
@@ -166,7 +152,8 @@ module.exports = {
166
152
}
167
153
```
168
154
169
-
The `hostUrl` and the `apiKey` fields are the credentials of the Meilisearch instance. Following on from this tutorial, they are respectively `http://localhost:7700` and `MASTER_KEY`.
155
+
The `hostUrl` and the `apiKey` fields are the credentials of the Meilisearch instance. Following on from this tutorial, they are respectively `MEILISEARCH_URL` and `MASTER_KEY`.
156
+
170
157
`indexUid` is the index identifier in your Meilisearch instance in which your website content is stored. It has been defined in the [config file](#configuration-file).
171
158
172
159
These three fields are mandatory, but more [optional fields are available](https://github.com/meilisearch/vuepress-plugin-meilisearch#customization) to customize your search bar.
@@ -208,7 +195,8 @@ _[Docxtemplater](https://docxtemplater.com/) search bar demo_
208
195
</html>
209
196
```
210
197
211
-
The `hostUrl` and the `apiKey` fields are the credentials of the Meilisearch instance. Following on from this tutorial, they are respectively `http://localhost:7700` and `MASTER_KEY`.
198
+
The `hostUrl` and the `apiKey` fields are the credentials of the Meilisearch instance. Following on from this tutorial, they are respectively `MEILISEARCH_URL` and `MASTER_KEY`.
199
+
212
200
`indexUid` is the index identifier in your Meilisearch instance in which your website content is stored. It has been defined in the [config file](#configuration-file).
213
201
`inputSelector` is the `id` attribute of the HTML search input tag.
Copy file name to clipboardExpand all lines: learn/multi_search/performing_federated_search.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ Download the following datasets: <a href="/assets/datasets/crm-chats.json">`crm-
21
21
Add the datasets to Meilisearch and create three separate indexes, `profiles`, `chats`, and `tickets`:
22
22
23
23
```sh
24
-
curl -X POST 'http://localhost:7700/indexes/profiles' -H 'Content-Type: application/json' --data-binary @crm-profiles.json &&
25
-
curl -X POST 'http://localhost:7700/indexes/chats' -H 'Content-Type: application/json' --data-binary @crm-chats.json &&
26
-
curl -X POST 'http://localhost:7700/indexes/tickets' -H 'Content-Type: application/json' --data-binary @crm-tickets.json
24
+
curl -X POST 'MEILISEARCH_URL/indexes/profiles' -H 'Content-Type: application/json' --data-binary @crm-profiles.json &&
25
+
curl -X POST 'MEILISEARCH_URL/indexes/chats' -H 'Content-Type: application/json' --data-binary @crm-chats.json &&
26
+
curl -X POST 'MEILISEARCH_URL/indexes/tickets' -H 'Content-Type: application/json' --data-binary @crm-tickets.json
27
27
```
28
28
29
29
[Use the tasks endpoint](/learn/async/working_with_tasks) to check the indexing status. Once Meilisearch successfully indexed all three datasets, you are ready to perform a federated search.
@@ -36,7 +36,7 @@ Use the `/multi-search` endpoint with the `federation` parameter to query the th
36
36
37
37
```sh
38
38
curl \
39
-
-X POST 'http://localhost:7700/multi-search' \
39
+
-X POST 'MEILISEARCH_URL/multi-search' \
40
40
-H 'Content-Type: application/json' \
41
41
--data-binary '{
42
42
"federation": {},
@@ -90,7 +90,7 @@ Use the `weight` property of the `federation` parameter to boost results coming
0 commit comments