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
* This file is part of the Flowpack.SearchPlugin package.
6
+
*
7
+
* (c) Contributors of the Flowpack Team - flowpack.org
8
+
*
9
+
* This package is Open Source Software. For the full copyright and license
10
+
* information, please view the LICENSE file which was distributed with this
11
+
* source code.
12
+
*/
13
+
14
+
useNeos\Eel\ProtectedContextAwareInterface;
15
+
useNeos\Flow\AnnotationsasFlow;
16
+
17
+
/**
18
+
* Helper for building suggestion configurations
19
+
*
20
+
* @Flow\Proxy(false)
21
+
*/
22
+
class SuggestionIndexHelper implements ProtectedContextAwareInterface
23
+
{
24
+
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.
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
+
* @param array $payload An arbitrary JSON object, which is simply returned in the suggest option.
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.
0 commit comments