This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPOST 192.168.1.2:9200/test -d'{ | |
"settings": { | |
"number_of_shards": 1, | |
"number_of_replicas": 0, | |
"analysis": { | |
"filter":{ | |
"shingler":{ | |
"type":"shingle", | |
"max_shingle_size":3, | |
"min_shingle_sizes":2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"settings": { | |
"_default_" : {}, | |
"analysis": { | |
"filter": { | |
"sample":{ | |
"type":"pattern_capture", | |
"pattern":"(([a-z]+)(\\d*))" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT 1 AS ID | |
INTO #left | |
UNION | |
SELECT 2 | |
UNION | |
SELECT 3 | |
UNION | |
SELECT 4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test1( numeric foo ){ | |
return 0 && isNull( foo ) ? true : foo > 0; | |
} | |
function test2( numeric foo ){ | |
return 0 && ( isNull( foo ) ? true : foo > 0 ); | |
} | |
writeOutput( "Return val is: " & test1() ); | |
writeOutput('<br>'); |