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: CONTRIBUTING.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ First of all, thank you for contributing to Meilisearch! The goal of this docume
11
11
## Assumptions
12
12
13
13
1.**You're familiar with [GitHub](https://github.com) and the [Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) (PR) workflow.**
14
-
2.**You've read the Meilisearch [documentation](https://docs.meilisearch.com) and the [README](/README.md).**
15
-
3.**You know about the [Meilisearch community](https://docs.meilisearch.com/learn/what_is_meilisearch/contact.html). Please use this for help.**
14
+
2.**You've read the Meilisearch [documentation](https://www.meilisearch.com/docs) and the [README](/README.md).**
15
+
3.**You know about the [Meilisearch community](https://discord.com/invite/meilisearch). Please use this for help.**
NB: If you don't have any Meilisearch instance running and containing your data, you should take a look at this [getting started page](https://docs.meilisearch.com/learn/tutorials/getting_started.html).
38
+
NB: If you don't have any Meilisearch instance running and containing your data, you should take a look at this [getting started page](https://www.meilisearch.com/docs/learn/getting_started/installation).
39
39
40
40
## Table of Contents <!-- omit in toc -->
41
41
@@ -50,7 +50,7 @@ NB: If you don't have any Meilisearch instance running and containing your data,
50
50
51
51
## 📖 Documentation
52
52
53
-
For general information on how to use Meilisearch—such as our API reference, tutorials, guides, and in-depth articles—refer to our [main documentation website](https://docs.meilisearch.com/).
53
+
For general information on how to use Meilisearch—such as our API reference, tutorials, guides, and in-depth articles—refer to our [main documentation website](https://www.meilisearch.com/docs/).
-`API Key` - Meilisearch access API Key. This can either be a string or a synchronous function that returns a string. ⚠️ Prefer using a key with only [search permissions](https://docs.meilisearch.com/learn/security/master_api_keys.html#master-key-and-api-keys) as it is used on your front-end.
86
+
-`API Key` - Meilisearch access API Key. This can either be a string or a synchronous function that returns a string. ⚠️ Prefer using a key with only [search permissions](https://www.meilisearch.com/docs/learn/security/master_api_keys#master-key-and-api-keys) as it is used on your front-end.
87
87
88
88
## 💅 Customization
89
89
@@ -137,7 +137,7 @@ Example:
137
137
138
138
### Primary key
139
139
140
-
Specify the field in your documents containing the [unique identifier](https://docs.meilisearch.com/learn/core_concepts/documents.html#primary-field) (`undefined` by default). By adding this option, we avoid instantSearch errors that are thrown in the browser console. In `React` particularly, this option removes the `Each child in a list should have a unique "key" prop` error.
140
+
Specify the field in your documents containing the [unique identifier](https://www.meilisearch.com/docs/learn/core_concepts/documents#primary-field) (`undefined` by default). By adding this option, we avoid instantSearch errors that are thrown in the browser console. In `React` particularly, this option removes the `Each child in a list should have a unique "key" prop` error.
141
141
142
142
```js
143
143
{ primaryKey :'id' } // default: undefined
@@ -168,7 +168,7 @@ genres:
168
168
169
169
### Matching strategy
170
170
171
-
`matchingStrategy` gives you the possibility to choose how Meilisearch should handle the presence of multiple query words, see [documentation](https://docs.meilisearch.com/reference/api/search.html#matching-strategy).
171
+
`matchingStrategy` gives you the possibility to choose how Meilisearch should handle the presence of multiple query words, see [documentation](https://www.meilisearch.com/docs/reference/api/search#matching-strategy).
172
172
173
173
For example, if your query is `hello world` by default Meilisearch returns documents containing either both `hello` and `world` or documents that only contain `hello`. This is the `last` strategy, where words are stripped from the right.
174
174
The other strategy is `all`, where both `hello` and `world`**must** be present in a document for it to be returned.
@@ -219,7 +219,7 @@ You can use your own HTTP client, for example, with [`axios`](https://github.com
219
219
220
220
The open-source [InstantSearch](https://www.algolia.com/doc/api-reference/widgets/js/) library powered by Algolia provides all the front-end tools you need to highly customize your search bar environment.
221
221
222
-
InstantSearch requires that you provide an indexName. The indexName corresponds to the [index `uid`](https://docs.meilisearch.com/learn/core_concepts/indexes.html#indexes) in which your document are stored in Meilisearch.
222
+
InstantSearch requires that you provide an indexName. The indexName corresponds to the [index `uid`](https://www.meilisearch.com/docs/learn/core_concepts/indexes#indexes) in which your document are stored in Meilisearch.
223
223
224
224
In `index.html`:
225
225
@@ -284,7 +284,7 @@ search.start()
284
284
## More Documentation
285
285
286
286
- The open-source InstantSearch library is widely used and well documented in the [Algolia documentation](https://www.algolia.com/doc/api-reference/widgets/js/). It provides all the widgets to customize and improve your search bar environment in your website.
287
-
- The [Meilisearch documentation](https://docs.meilisearch.com/).
287
+
- The [Meilisearch documentation](https://www.meilisearch.com/docs/).
288
288
- If you use React, check out [meilisearch-react](https://github.com/meilisearch/meilisearch-react/)
289
289
- If you use Vue, check out [meilisearch-vue](https://github.com/meilisearch/meilisearch-vue/)
290
290
- If you use Angular, check out [meilisearch-angular](https://github.com/meilisearch/meilisearch-angular/)
@@ -356,7 +356,7 @@ List of all the components that are available in [instantSearch](https://github.
356
356
357
357
`instantSearch` is the main component. It manages the widget and lets you add new ones.
358
358
359
-
- ✅ IndexName: [`uid` of your index](https://docs.meilisearch.com/learn/core_concepts/indexes.html#indexes). _required_
359
+
- ✅ IndexName: [`uid` of your index](https://www.meilisearch.com/docs/learn/core_concepts/indexes#indexes). _required_
360
360
- ✅ SearchClient: Search client, in our case instant-meilisearch. See [customization](#-customization) for details on options. _required_
361
361
- ❌ numberLocale: Does not work with both Algoliasearch and instant-meilisearch.
362
362
- ✅ searchFunction: Surcharge the search function provided by the search client.
@@ -422,7 +422,7 @@ Because these are the search parameters of AlgoliaSearch and not the InstantSear
422
422
Since we do not act as AlgoliaSearch on search parameters, detailed compatibility can be found in [this issue](https://github.com/meilisearch/instant-meilisearch/issues/389).<br>
423
423
This component should only be used if no other component provides the same configuration.
424
424
425
-
We also suggest looking at [Meilisearch's search parameters](https://docs.meilisearch.com/reference/features/search_parameters.html) to determine how they act.
425
+
We also suggest looking at [Meilisearch's search parameters](https://www.meilisearch.com/docs/reference/api/search#search-parameters) to determine how they act.
426
426
427
427
```js
428
428
instantsearch.widgets.configure({
@@ -568,7 +568,7 @@ The `snippet` function returns an attribute from a hit into its snippet form, wh
568
568
569
569
Note that the attribute has to be added to `attributesToSnippet` in [configuration](#-configure). Highlight is applied on snippeted fields.
570
570
571
-
Snippeting is called `cropping` in Meilisearch, [more about it here](https://docs.meilisearch.com/reference/features/search_parameters.html#attributes-to-retrieve). It is possible to change the size of the snippeting by adding its character size in the attributesToSnippet parameter. <br>
571
+
Snippeting is called `cropping` in Meilisearch, [more about it here](https://www.meilisearch.com/docs/reference/api/search#attributes-to-retrieve). It is possible to change the size of the snippeting by adding its character size in the attributesToSnippet parameter. <br>
572
572
For example: `"description:40"`.
573
573
574
574
The `40` value represents the number of characters (rounded down to always have full words) and not the number of words. Thus, the snippet string size is always equal to or lower than `40` characters.
@@ -681,7 +681,7 @@ Alternatively, the parameters can be passed through the [`searchFunction`](https
681
681
},
682
682
```
683
683
684
-
[Read the guide on how GeoSearch works in Meilisearch](https://docs.meilisearch.com/reference/features/geosearch.html#geosearch).
684
+
[Read the guide on how GeoSearch works in Meilisearch](https://www.meilisearch.com/docs/learn/getting_started/filtering_and_sorting#geosearch).
685
685
686
686
### ❌ Answers
687
687
@@ -742,7 +742,7 @@ The `hierarchicalMenu` widget is used to create navigation based on a hierarchy
742
742
#### Hierarchical Menu Usage
743
743
To make it work with Meilisearch your documents must have a specific structure, an explanation of the structure can [be found here](https://www.algolia.com/doc/api-reference/widgets/hierarchical-menu/js/#requirements).
744
744
745
-
Contrary to `instantsearch.js`, the hierarchical fields are added in [`filterableAttributes`](https://docs.meilisearch.com/reference/api/filterable_attributes.html#update-filterable-attributes).
745
+
Contrary to `instantsearch.js`, the hierarchical fields are added in [`filterableAttributes`](https://www.meilisearch.com/docs/reference/api/settings#filterable-attributes).
746
746
747
747
Example:
748
748
Give the following document structure:
@@ -778,14 +778,13 @@ The `rangeSlider` widget provides a user-friendly way to filter the results, bas
778
778
- ✅ attribute: The name of the attribute in the document. _required_.
779
779
- ✅ min: The minimum value for the input. _required_
780
780
- ✅ max: The maximum value for the input. _required_
781
-
-✅ precision: The number of digits after the decimal point to use. Not compatible as only integers work with `rangeSlider`.
781
+
-❌ precision: The number of digits after the decimal point to use. Not compatible as only integers work with `rangeSlider`.
782
782
- ✅ step: The number of steps between each handle move.
783
783
- ✅ pips: Whether to show slider pips (ruler marks).
784
784
- ✅ tooltips: Whether to show tooltips. The default tooltips show the raw value.
785
785
- ✅ cssClasses: The CSS classes to override.
786
786
787
-
To be able to use the `rangeSlider` on an attribute, the attribute must be in the[`filterableAttributes`](https://docs.meilisearch.com/reference/features/filtering_and_faceted_search.html#configuring-filters) and must contain numeric values.
788
-
787
+
To be able to use the `rangeSlider` on an attribute, the attribute must be in the[`filterableAttributes`](https://www.meilisearch.com/docs/reference/api/settings#filterable-attributes) and must contain numeric values.
789
788
790
789
### ✅ Menu
791
790
@@ -829,7 +828,7 @@ The `rangeInput` widget allows a user to select a numeric range using a minimum
829
828
- ✅ templates: The templates to use for the widget.
830
829
- ✅ cssClasses: The CSS classes to override.
831
830
832
-
To be able to use the `RangeInput` on an attribute, the attribute must be in the[`filterableAttributes`](https://docs.meilisearch.com/reference/features/filtering_and_faceted_search.html#configuring-filters) and must contain numeric values.
831
+
To be able to use the `RangeInput` on an attribute, the attribute must be in the[`filterableAttributes`](https://www.meilisearch.com/docs/reference/api/settings#filterable-attributes) and must contain numeric values.
833
832
834
833
### ✅ MenuSelect
835
834
@@ -885,7 +884,7 @@ The `RatingMenu` widget lets the user refine search results by clicking on stars
885
884
- ✅ templates: The templates to use for the widget.
886
885
- ✅ cssClasses: The CSS classes to override.
887
886
888
-
Contrary to `instantsearch.js`, To be able to use `RatingMenu` the field containing the rating has to be added in the [`filterableAttributes`](https://docs.meilisearch.com/reference/api/filterable_attributes.html#update-filterable-attributes) setting in your index settings.
887
+
Contrary to `instantsearch.js`, To be able to use `RatingMenu` the field containing the rating has to be added in the [`filterableAttributes`](https://www.meilisearch.com/docs/reference/api/settings#filterable-attributes) setting in your index settings.
889
888
890
889
### ✅ ClearRefinements
891
890
@@ -1013,7 +1012,7 @@ A sort formula is expressed like this: `index:attribute:order`.
1013
1012
1014
1013
`index` is mandatory, and when adding `attribute:order`, they must always be added together.
1015
1014
1016
-
When sorting on an attribute, the attribute has to be added to the [`sortableAttributes`](https://docs.meilisearch.com/reference/api/sortable_attributes.html) setting on your index.
1015
+
When sorting on an attribute, the attribute has to be added to the [`sortableAttributes`](https://www.meilisearch.com/docs/reference/api/settings#sortable-attributes) setting on your index.
1017
1016
1018
1017
Example:
1019
1018
```js
@@ -1024,24 +1023,11 @@ Example:
1024
1023
1025
1024
In this scenario, in the `clothes` index, we want the price to be sorted in an ascending way. For this formula to be valid, `price` must be added to the `sortableAttributes` settings of the `clothes` index.
1026
1025
1027
-
#### Sort by multiple attributes
1028
-
When sorting by mutiple fields sort formula is expressed like this: `index:attribute:order,attribute2:order`.
1029
-
1030
-
Example:
1031
-
```js
1032
-
[
1033
-
{ label:'Sort By Price And Title', value:'clothes:price:asc,title:asc' }
1034
-
]
1035
-
```
1036
-
1037
-
⚠️ Attributes with comma in their name are not allowed.
1038
-
1039
-
1040
1026
#### Relevancy
1041
1027
1042
-
The impact sorting has on the returned hits is determined by the [`ranking-rules`](https://docs.meilisearch.com/learn/core_concepts/relevancy.html#ranking-rules) ordered list of each index. The `sort` ranking-rule position in the list makes sorting documents more or less important than other rules. If you want to change the sort impact on the relevancy, it is possible to change it in the [ranking-rule setting](https://docs.meilisearch.com/learn/core_concepts/relevancy.html#relevancy). For example, to favor exhaustivity over relevancy.
1028
+
The impact sorting has on the returned hits is determined by the [`ranking-rules`](https://www.meilisearch.com/docs/learn/core_concepts/relevancy#ranking-rules) ordered list of each index. The `sort` ranking-rule position in the list makes sorting documents more or less important than other rules. If you want to change the sort impact on the relevancy, it is possible to change it in the [ranking-rule setting](https://www.meilisearch.com/docs/learn/core_concepts/relevancy#relevancy). For example, to favor exhaustivity over relevancy.
1043
1029
1044
-
See [relevancy guide](https://docs.meilisearch.com/learn/core_concepts/relevancy.html#relevancy).
1030
+
See [relevancy guide](https://www.meilisearch.com/docs/learn/core_concepts/relevancy#relevancy).
0 commit comments