This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height:100%; |
This file contains hidden or 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 listTimingInfo (){ | |
var timing = window.performance.timing; | |
var url = document.location.href; | |
var navigationStart = timing.navigationStart; | |
var loadEnd = timing.loadEventEnd; | |
var totalLoadTime = loadEnd - navigationStart; |
This file contains hidden or 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 -X DELETE "http://localhost:9200/dashboard" | |
curl -X POST "http://localhost:9200/dashboard/article/1?version=15&version_type=external_quiet" -d ' | |
{ "title" : "One", | |
"tags" : ["ruby", "java", "search"]} | |
' | |
#{"ok":true,"_index":"dashboard","_type":"article","_id":"1","_version":15} | |
curl -X POST "http://localhost:9200/dashboard/article/1?version=13&version_type=external_quiet" -d ' | |
{ "title" : "Two", |
This file contains hidden or 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
{ | |
"mappings": { | |
"locations": { | |
"properties": { | |
"recordId": { | |
"type": "long" | |
}, | |
"namePlain": { | |
"type": "string", | |
"store": "no", |
This file contains hidden or 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 -X DELETE "http://localhost:9200/classifieds" | |
echo -e "\ndeleted index" | |
curl -X POST "http://localhost:9200/classifieds/property/1" -d '{"type" : ["house", "detached"]}' | |
echo -e "\nindexed 1" | |
curl -X POST "http://localhost:9200/classifieds/property/2" -d '{"type" : ["house","detached"]}' | |
echo -e "\nindexed 2" | |
curl -X POST "http://localhost:9200/classifieds/property/3" -d '{"type" : ["house","semi"]}' | |
echo -e "\nindexed 3" | |
curl -X POST "http://localhost:9200/classifieds/property/4" -d '{"type" : ["house","terraced"]}' | |
echo -e "\nindexed 4" |
This file contains hidden or 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 -XPUT 'localhost:9200/jt/' -d ' | |
{ | |
"settings": { | |
"index": { | |
"number_of_shards":5, | |
"number_of_replicas":0 | |
} | |
} | |
} | |
' |
This file contains hidden or 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
[2011-07-06 03:50:13,582][DEBUG][monitor.jvm ] [Aardwolf] [gc][PS Scavenge][12] took [30ms]/[494ms], reclaimed [742.4mb], leaving [87.1mb] used, max [2.5gb] | |
[2011-07-06 09:02:54,047][WARN ][http.netty ] [Aardwolf] Caught exception while handling client http traffic, closing connection | |
java.lang.IllegalStateException: cannot send more responses than requests | |
at org.elasticsearch.common.netty.handler.codec.http.HttpContentEncoder.writeRequested(HttpContentEncoder.java:102) | |
at org.elasticsearch.common.netty.channel.SimpleChannelHandler.handleDownstream(SimpleChannelHandler.java:266) | |
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:568) | |
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:563) | |
at org.elasticsearch.common.netty.channel.Channels.write(Channels.java:611) | |
at org.elasticsearch.common.netty.channel.Channels.write(Channels.java:578) | |
at org.elasticsearch.comm |
This file contains hidden or 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
{ | |
"from": 0, | |
"size": 100, | |
"facets": { | |
"outcodes": { | |
"terms": { | |
"field": "postalsector", | |
"order": "count", | |
"size": 5 | |
} |
This file contains hidden or 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
{ | |
"from": 0, | |
"size": 100, | |
"facets": { | |
"outcodes": { | |
"terms": { | |
"field": "outcode", | |
"order": "count", | |
"size": 5 | |
} |
This file contains hidden or 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
{ | |
"from": 0, | |
"size": 100, | |
"facets": { | |
"postalsector": { | |
"terms": { | |
"field": "postalsector", | |
"order": "count", | |
"size": 5 | |
} |
NewerOlder