Skip to content

Commit 4db0566

Browse files
authored
Update README.md (#105)
1 parent ea39bd1 commit 4db0566

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

README.md

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
<h4 align="center">
88
<a href="https://github.com/meilisearch/MeiliSearch">MeiliSearch</a> |
9+
<a href="https://docs.meilisearch.com">Documentation</a> |
910
<a href="https://www.meilisearch.com">Website</a> |
1011
<a href="https://blog.meilisearch.com">Blog</a> |
1112
<a href="https://twitter.com/meilisearch">Twitter</a> |
12-
<a href="https://docs.meilisearch.com">Documentation</a> |
1313
<a href="https://docs.meilisearch.com/faq">FAQ</a>
1414
</h4>
1515

@@ -20,18 +20,23 @@
2020
<a href="https://slack.meilisearch.com"><img src="https://img.shields.io/badge/slack-MeiliSearch-blue.svg?logo=slack" alt="Slack"></a>
2121
</p>
2222

23-
<p align="center">⚡ Lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine MeiliSearch client written in Ruby 💎</p>
23+
<p align="center">⚡ The MeiliSearch API client written for Ruby 💎</p>
2424

25-
**MeiliSearch Ruby** is a client for **MeiliSearch** written in Ruby. **MeiliSearch** is a powerful, fast, open-source, easy to use and deploy search engine. Both searching and indexing are highly customizable. Features such as typo-tolerance, filters, and synonyms are provided out-of-the-box.
25+
**MeiliSearch Ruby** is the MeiliSearch API client for Ruby developers. **MeiliSearch** is a powerful, fast, open-source, easy to use and deploy search engine. Both searching and indexing are highly customizable. Features such as typo-tolerance, filters, facets, and synonyms are provided out-of-the-box.
2626

2727
## Table of Contents <!-- omit in toc -->
2828

29+
- [📖 Documentation](#-documentation)
2930
- [🔧 Installation](#-installation)
30-
- [🚀 Getting started](#-getting-started)
31+
- [🚀 Getting Started](#-getting-started)
3132
- [🤖 Compatibility with MeiliSearch](#-compatibility-with-meilisearch)
32-
- [📖 Documentation and Examples](#-documentation-and-examples)
33+
- [� Learn More](#-learn-more)
3334
- [⚙️ Development Workflow and Contributing](#️-development-workflow-and-contributing)
3435

36+
## 📖 Documentation
37+
38+
See our [Documentation](https://docs.meilisearch.com/guides/introduction/quick_start_guide.html) or our [API References](https://docs.meilisearch.com/references/).
39+
3540
## 🔧 Installation
3641

3742
With `gem` in command line:
@@ -51,14 +56,15 @@ gem 'meilisearch'
5156
There are many easy ways to [download and run a MeiliSearch instance](https://docs.meilisearch.com/guides/advanced_guides/installation.html#download-and-launch).
5257

5358
For example, if you use Docker:
59+
5460
```bash
5561
$ docker pull getmeili/meilisearch:latest # Fetch the latest version of MeiliSearch image from Docker Hub
5662
$ docker run -it --rm -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --master-key=masterKey
5763
```
5864

5965
NB: you can also download MeiliSearch from **Homebrew** or **APT**.
6066

61-
## 🚀 Getting started
67+
## 🚀 Getting Started
6268

6369
#### Add documents <!-- omit in toc -->
6470

@@ -80,7 +86,7 @@ documents = [
8086
index.add_documents(documents) # => { "updateId": 0 }
8187
```
8288

83-
With the `updateId`, you can check the status (`processed` or `failed`) of your documents addition thanks to this [method](https://docs.meilisearch.com/references/updates.html#get-an-update-status).
89+
With the `updateId`, you can check the status (`enqueued`, `processed` or `failed`) of your documents addition using the [update endpoint](https://docs.meilisearch.com/references/updates.html#get-an-update-status).
8490

8591
#### Basic Search <!-- omit in toc -->
8692

@@ -89,6 +95,7 @@ With the `updateId`, you can check the status (`processed` or `failed`) of your
8995
puts index.search('harry pottre')
9096
```
9197
Output:
98+
9299
```ruby
93100
{
94101
"hits" => [{
@@ -107,9 +114,16 @@ Output:
107114
All the supported options are described in the [search parameters](https://docs.meilisearch.com/guides/advanced_guides/search_parameters.html) section of the documentation.
108115

109116
```ruby
110-
index.search('prince', { limit: 1, attributesToHighlight: '*' })
117+
index.search('prince',
118+
{
119+
filters: 'book_id > 10',
120+
attributesToHighlight: ['*']
121+
}
122+
)
111123
```
112124

125+
JSON output:
126+
113127
```json
114128
{
115129
"hits": [
@@ -123,7 +137,7 @@ index.search('prince', { limit: 1, attributesToHighlight: '*' })
123137
}
124138
],
125139
"offset": 0,
126-
"limit": 1,
140+
"limit": 20,
127141
"processingTimeMs": 0,
128142
"query": "prince"
129143
}
@@ -133,18 +147,14 @@ index.search('prince', { limit: 1, attributesToHighlight: '*' })
133147

134148
This package only guarantees the compatibility with the [version v0.15.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.15.0).
135149

136-
## 📖 Documentation and Examples
137-
138-
MeiliSearch documentation provides **examples** and a detailed explanation of every one of its features and functionalities, including examples on how to implement them **using this SDK**.
139-
140-
Please read the [guides available in the documentation](https://docs.meilisearch.com/guides/) or check the [API references](https://docs.meilisearch.com/references/) to find the one that you need!
150+
## 💡 Learn More
141151

142152
The following sections may interest you:
143153

144-
- [Manipulate documents](https://docs.meilisearch.com/references/documents.html)
145-
- [Search](https://docs.meilisearch.com/references/search.html)
146-
- [Manage the indexes](https://docs.meilisearch.com/references/indexes.html)
147-
- [Configure the index settings](https://docs.meilisearch.com/references/settings.html)
154+
- **Manipulate documents**: see the [API references](https://docs.meilisearch.com/references/documents.html) or read more about [documents](https://docs.meilisearch.com/guides/main_concepts/documents.html).
155+
- **Search**: see the [API references](https://docs.meilisearch.com/references/search.html) or follow our guide on [search parameters](https://docs.meilisearch.com/guides/advanced_guides/search_parameters.html).
156+
- **Manage the indexes**: see the [API references](https://docs.meilisearch.com/references/indexes.html) or read more about [indexes](https://docs.meilisearch.com/guides/main_concepts/indexes.html).
157+
- **Configure the index settings**: see the [API references](https://docs.meilisearch.com/references/settings.html) or follow our guide on [settings parameters](https://docs.meilisearch.com/guides/advanced_guides/settings.html).
148158

149159
## ⚙️ Development Workflow and Contributing
150160

0 commit comments

Comments
 (0)