smartsearch - qlik-oss/gopherciser GitHub Wiki
Perform a Smart Search in Sense app to find suggested selections.
-
searchtextsource: Source for list of strings used for searching.-
searchtextlist(default) searchtextfile
-
-
searchtextlist: List of of strings used for searching. -
searchtextfile: File path to file with one search string per line. -
pastesearchtext:-
true: Simulate pasting search text. -
false: Simulate typing at normal speed (default).
-
-
makeselection: Select a random search result.truefalse
-
selectionthinktime: Think time before selection ifmakeselectionistrue, defaults to a 1 second delay.-
type: Type of think time-
static: Static think time, defined bydelay. -
uniform: Random think time with uniform distribution, defined bymeananddev.
-
-
delay: Delay (seconds), used with typestatic. -
mean: Mean (seconds), used with typeuniform. -
dev: Deviation (seconds) frommeanvalue, used with typeuniform.
-
{
"action": "smartsearch",
"label": "one term search",
"settings": {
"searchtextlist": [
"term1"
]
}
}{
"action": "smartsearch",
"label": "two term search",
"settings": {
"searchtextlist": [
"term1 term2"
]
}
}{
"action": "smartsearch",
"settings": {
"searchtextlist": [
"text1",
"text2",
"text3"
]
}
}{
"action": "smartsearch",
"settings": {
"searchtextsource": "searchtextfile",
"searchtextfile": "data/searchtexts.txt"
}
}search text
"quoted search text"
another search text
The default behavior is to simulate typing at normal speed.
{
"action": "smartsearch",
"settings": {
"pastesearchtext": true,
"searchtextlist": [
"text1"
]
}
}{
"action": "smartsearch",
"settings": {
"searchtextlist": [
"term1"
],
"makeselection": true,
"selectionthinktime": {
"type": "static",
"delay": 2
}
}
}{
"action": "smartsearch",
"settings": {
"searchtextlist": [
"\"word1 word2\""
]
}
}{
"action": "smartsearch",
"label": "two term search, one including spaces",
"settings": {
"searchtextlist": [
"\"word1 word2\" term2"
]
}
}{
"action": "smartsearch",
"label": "one term search including spaces",
"settings": {
"searchtext":
"searchtextlist": [
"\\\"hello"
]
}
}