File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,25 @@ $api->search->find($string)->results();
70
70
71
71
Search modification methods are:
72
72
``` php
73
- $api->search->column($column);
74
- $api->search->algorithm($searchStringAlgorithm);
73
+ // The column to search on
74
+ $api->search->findColumn($column);
75
+
76
+ // the algorithm to use
77
+ $api->search->findAlgorithm($searchStringAlgorithm);
78
+
79
+ // the page to start on
75
80
$api->search->page($number);
81
+
82
+ // sorting order
76
83
$api->search->sort($field, $order);
84
+
85
+ // limit results
77
86
$api->search->limit($limit);
87
+
88
+ // columns in the results
78
89
$api->search->columns($columns);
90
+
91
+ // change elastics filter bool condition (eg: should, must, must_not)
79
92
$api->search->bool($bool);
80
93
```
81
94
Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ public function find(string $string): Search
55
55
return $ this ;
56
56
}
57
57
58
- public function column (string $ column ): Search
58
+ public function findColumn (string $ column ): Search
59
59
{
60
60
$ this ->options ->string_column = trim ($ column );
61
61
return $ this ;
62
62
}
63
63
64
- public function algorithm (string $ searchStringAlgorithm ): Search
64
+ public function findAlgorithm (string $ searchStringAlgorithm ): Search
65
65
{
66
66
$ this ->options ->string_algo = trim ($ searchStringAlgorithm );
67
67
return $ this ;
You can’t perform that action at this time.
0 commit comments