mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-25 22:34:28 +01:00
Fix port in README & Dockerfile
This commit is contained in:
parent
d2b1690191
commit
5917f212ba
@ -23,5 +23,5 @@ RUN apk add libgcc
|
|||||||
|
|
||||||
COPY --from=compiler /meilisearch/target/release/meilisearch .
|
COPY --from=compiler /meilisearch/target/release/meilisearch .
|
||||||
|
|
||||||
ENV MEILI_HTTP_ADDR 0.0.0.0:8080
|
ENV MEILI_HTTP_ADDR 0.0.0.0:7700
|
||||||
CMD ./meilisearch
|
CMD ./meilisearch
|
||||||
|
@ -48,7 +48,7 @@ You still need to create your front-end to make it pretty, though.
|
|||||||
### Deploy the Server
|
### Deploy the Server
|
||||||
|
|
||||||
If you have not yet installed Rust and its package manager `cargo`, go to [the installation page](https://www.rust-lang.org/tools/install).<br/>
|
If you have not yet installed Rust and its package manager `cargo`, go to [the installation page](https://www.rust-lang.org/tools/install).<br/>
|
||||||
You can deploy the server on your machine; it listens to HTTP requests on the 8080 port by default.
|
You can deploy the server on your machine; it listens to HTTP requests on the 7700 port by default.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo run --release
|
cargo run --release
|
||||||
@ -65,14 +65,14 @@ MeiliSearch can serve multiple indexes, with different kinds of documents,
|
|||||||
therefore, it is required to create the index before sending documents to it.
|
therefore, it is required to create the index before sending documents to it.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -i -X POST 'http://127.0.0.1:8080/indexes' --data '{ "name": "Movies", "uid": "movies" }'
|
curl -i -X POST 'http://127.0.0.1:7700/indexes' --data '{ "name": "Movies", "uid": "movies" }'
|
||||||
```
|
```
|
||||||
|
|
||||||
Now that the server knows about our brand new index, we can send it data.
|
Now that the server knows about our brand new index, we can send it data.
|
||||||
We provided you a small dataset that is available in the `datasets/` directory.
|
We provided you a small dataset that is available in the `datasets/` directory.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -i -X POST 'http://127.0.0.1:8080/indexes/movies/documents' \
|
curl -i -X POST 'http://127.0.0.1:7700/indexes/movies/documents' \
|
||||||
--header 'content-type: application/json' \
|
--header 'content-type: application/json' \
|
||||||
--data @datasets/movies/movies.json
|
--data @datasets/movies/movies.json
|
||||||
```
|
```
|
||||||
@ -83,7 +83,7 @@ The search engine is now aware of our documents and can serve those via our HTTP
|
|||||||
The [`jq` command-line tool](https://stedolan.github.io/jq/) can significantly help you read the server responses.
|
The [`jq` command-line tool](https://stedolan.github.io/jq/) can significantly help you read the server responses.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl 'http://127.0.0.1:8080/indexes/movies/search?q=botman'
|
curl 'http://127.0.0.1:7700/indexes/movies/search?q=botman'
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
Loading…
Reference in New Issue
Block a user