aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/advanced/ilscripts.cfg
blob: d633cd97f0cb8ee599b1d97c6018da3829f56d70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
maxtermoccurrences 10000
maxtokenlength 1000
fieldmatchmaxlength 1000000
ilscript[].doctype "advanced"
ilscript[].docfield[] "debug_src"
ilscript[].docfield[] "attributes_src"
ilscript[].docfield[] "location_str"
ilscript[].docfield[] "title_src"
ilscript[].docfield[] "product_src"
ilscript[].docfield[] "product2_src"
ilscript[].docfield[] "product3_src"
ilscript[].content[] "clear_state | guard { 1 | set_var superdupermod; 2 | set_var tmppubdate; input attributes_src | lowercase | tokenize normalize | summary attributes | index attributes | split \";\" | for_each { switch { case \"typepr\": 1 | set_var tmpsourcerank | get_var tmppubdate - 9000 | set_var tmppubdate | 0 | set_var superdupermod; } }; }"
ilscript[].content[] "clear_state | guard { 0 | set_var superduperus | set_var superdupereu | set_var superduperasia; input debug_src | lowercase | tokenize normalize | summary debug | index debug | split \";\" | for_each { switch { case \"superduperus\": 10 | set_var superduperus; case \"superdupereu\": 10 | set_var superdupereu; case \"superduperasia\": 10 | set_var superduperasia; } }; }"
ilscript[].content[] "clear_state | guard { input location_str | to_pos | zcurve | attribute location_zcurve; }"
ilscript[].content[] "clear_state | guard { input title_src | summary mysummary; }"
ilscript[].content[] "clear_state | guard { input product_src | switch { case \"\": \"myweb\" | tokenize stem:\"BEST\" | index product | summary product; default: input product_src | tokenize stem:\"BEST\" | index product | summary product; }; }"
ilscript[].content[] "clear_state | guard { if (input product2_src == \"foo\") { \"bar\" | tokenize stem:\"BEST\" | index product2; } else { \"baz\" | tokenize stem:\"BEST\" | index product2; }; }"
ilscript[].content[] "clear_state | guard { input product3_src | switch { case \"\": \"myweb\" | tokenize stem:\"BEST\" | index product3 | summary product3; default: input product3_src | tokenize stem:\"BEST\" | index product3 | summary product3; }; }"
ilscript[].content[] "clear_state | guard { input title_src | tokenize normalize | index title; }"
ilscript[].content[] "clear_state | guard { input title_src | summary title_s; }"
ilscript[].content[] "input attributes_src | passthrough attributes_src"
ilscript[].content[] "input debug_src | passthrough debug_src"
ilscript[].content[] "input product2_src | passthrough product2_src"
ilscript[].content[] "input product3_src | passthrough product3_src"
ilscript[].content[] "input product_src | passthrough product_src"
ilscript[].content[] "input title_src | passthrough title_src"