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: Classes/EelHelper/SuggestionIndexHelper.php
+22-5Lines changed: 22 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
* source code.
12
12
*/
13
13
14
+
useFlowpack\SearchPlugin\Exception;
14
15
useNeos\Eel\ProtectedContextAwareInterface;
15
16
useNeos\Flow\AnnotationsasFlow;
16
17
@@ -21,9 +22,8 @@
21
22
*/
22
23
class SuggestionIndexHelper implements ProtectedContextAwareInterface
23
24
{
24
-
25
25
/**
26
-
* @param string $input The input to store, this can be a an array of strings or just a string. This field is mandatory.
26
+
* @param string|array $input The input to store, this can be a an array of strings or just a string. This field is mandatory.
27
27
* @param string $output The result is de-duplicated if several documents have the same output, i.e. only one is returned as part of the suggest result.
28
28
* @param array $payload An arbitrary JSON object, which is simply returned in the suggest option.
29
29
* @param int $weight A positive integer or a string containing a positive integer, which defines a weight and allows you to rank your suggestions.
@@ -40,13 +40,30 @@ public function build($input, $output = '', array $payload = [], $weight = 1)
0 commit comments