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: readme.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Unified search for Laravel models using Elasticsearch. Laravel Hunt uses the [of
11
11
12
12
# Elasticsearch Requirements
13
13
14
-
You must be running Elasticsearch 1.0 or higher.
14
+
You must be running Elasticsearch 5.0 or higher.
15
15
16
16
## Installation
17
17
@@ -107,14 +107,13 @@ Create the Elasticsearch index.
107
107
108
108
Remove the Elasticsearch index.
109
109
110
-
#### `hunt:map <action> <model>`
110
+
#### `hunt:map <model>`
111
111
112
-
Initialize an Eloquent model.
112
+
Initialize an Eloquent model map.
113
113
114
114
Arguments:
115
115
116
116
```
117
-
action Mapping action to perform (add or remove)
118
117
model Name or comma separated names of the model(s) to initialize
119
118
```
120
119
@@ -216,8 +215,10 @@ Once you have retrieved the results, you may display the results and render the
216
215
{{ $posts->links() }}
217
216
```
218
217
219
-
## Change Log
218
+
## Multilingual
220
219
221
-
#### v0.1.0
220
+
> This feature is experimental
222
221
223
-
- First release
222
+
Laravel Hunt can support multiple languages by appending the language code to the index type, so when the system performs a search it will only look for data that is on in the current system locale suffixed index type. For this to work the model needs to use the `LaravelHunt\Localized` trait or something similar to it and model needs to have the filed `locale`.
223
+
224
+
For more information see the config file for more details.
0 commit comments