Skip to content

Instantly share code, notes, and snippets.

View jtreher's full-sized avatar

Justin Treher jtreher

  • Webstaurantstore.com
View GitHub Profile
{
"settings": {
"_default_" : {},
"analysis": {
"filter": {
"sample":{
"type":"pattern_capture",
"pattern":"(([a-z]+)(\\d*))"
}
@jtreher
jtreher / gist:5577747
Last active December 17, 2015 08:08
Demonstrate suggest issue
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
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>');
SELECT 1 AS ID
INTO #left
UNION
SELECT 2
UNION
SELECT 3
UNION
SELECT 4;