Skip to content

Commit 6e257ce

Browse files
committed
fix readme
1 parent bfc9836 commit 6e257ce

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

readme.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ Index and type names setted in query will override values the configuration file
4343
#### Available methods:
4444

4545

46-
// sorting
46+
##### Sorting
4747

4848
$documents = ES::orderBy("created_at", "desc")->get();
4949
$documents = ES::orderBy("_score")->get();
5050

51-
// limit and offset
51+
##### Limit and offset
5252

5353
$documents = ES::take(10)->skip(5)->get();
5454

55-
// select only specific fields
55+
##### Select only specific fields
5656

5757
$documents = ES::select("title", "content")->take(10)->skip(5)->get();
5858

59-
// where clause
59+
##### Where clause
6060

6161
ES::where("id", 150)->get(); or ES::where("id", "=", 150)->get();
6262
ES::where("id", ">", 150)->get();
@@ -66,17 +66,17 @@ Index and type names setted in query will override values the configuration file
6666
ES::where("title", "like", "foo")->get();
6767
ES::where("hobbies", "exists", true)->get(); or ES::whereExists("hobbies", true)->get();
6868

69-
// where in clause
69+
##### Where in clause
7070

7171
ES::whereIn("id", [100, 150])->get();
7272

73-
// where between clause
73+
##### Where between clause
7474

7575
ES::whereBetween("id", 100, 150)->get();
7676

7777
>
7878
79-
// where not clause
79+
##### Where not clause
8080

8181
ES::whereNot("id", 150)->get(); or ES::where("id", "=", 150)->get();
8282
ES::whereNot("id", ">", 150)->get();
@@ -86,37 +86,37 @@ Index and type names setted in query will override values the configuration file
8686
ES::whereNot("title", "like", "foo")->get();
8787
ES::whereNot("hobbies", "exists", true)->get(); or ES::whereExists("hobbies", true)->get();
8888

89-
// where not in clause
89+
##### Where not in clause
9090

9191
ES::whereNotIn("id", [100, 150])->get();
9292

93-
// where not between clause
93+
##### Where not between clause
9494

9595
ES::whereNotBetween("id", 100, 150)->get();
9696

9797

9898
>
9999
100-
// Search the entire document
100+
##### Search the entire document
101101

102102
ES::search("bar")->get();
103103

104104

105105
>
106106
107-
// Return only first record
107+
##### Return only first record
108108

109109
ES::search("bar")->first();
110110

111111
>
112112
113-
// Return only count
113+
##### Return only count
114114

115115
ES::search("bar")->count();
116116

117117
>
118118
119-
// paginate results with per_page = 5
119+
##### Paginate results with per_page = 5
120120
121121
$documents = ES::search("bar")->paginate(5);
122122

@@ -127,7 +127,7 @@ Index and type names setted in query will override values the configuration file
127127

128128
>
129129
130-
// Executing elasticsearch raw queries
130+
##### Executing elasticsearch raw queries
131131

132132
ES::raw()->search([
133133
"index" => "my_index",
@@ -147,7 +147,7 @@ Index and type names setted in query will override values the configuration file
147147

148148
>
149149
150-
// insert a new document
150+
##### Insert a new document
151151

152152
ES::insert([
153153
"title" => "Test document",
@@ -162,7 +162,7 @@ Index and type names setted in query will override values the configuration file
162162

163163
>
164164
165-
// Bulk insert a multiple of documents at once using multidimensional array of [id => data] pairs
165+
##### Bulk insert a multiple of documents at once using multidimensional array of [id => data] pairs
166166
167167
ES::bulk(
168168
10 => [
@@ -179,7 +179,7 @@ Index and type names setted in query will override values the configuration file
179179

180180
>
181181
182-
// Update an existing document
182+
##### Update an existing document
183183
184184
ES::update([
185185
"title" => "Test document",
@@ -193,7 +193,7 @@ Index and type names setted in query will override values the configuration file
193193

194194
>
195195
196-
// delete a document
196+
##### Delete a document
197197
198198
ES::delete(3);
199199

0 commit comments

Comments
 (0)