Skip to content

Instantly share code, notes, and snippets.

@laurikari
laurikari / keybase-proof
Created March 24, 2014 20:59
Keybase proof
### Keybase proof
I hereby claim:
* I am laurikari on github.
* I am ville (https://keybase.io/ville) on keybase.
* I have a public key whose fingerprint is F48D C4B8 F064 CFA9 ABD6 FB7E 3757 CF9F 5B97 E9C6
To claim this, I am signing this object:
@laurikari
laurikari / gist:7824057
Created December 6, 2013 13:45
Run this a few times and observe how matched_filters is randomly present in the results.
curl -XDELETE "http://localhost:9200/bug"
curl -XPOST "http://localhost:9200/bug/article/" -d '{"content": "Lorem ipsum dolor sit amet"}'
curl -XPOST "http://localhost:9200/bug/article/" -d '{"content": "consectetur adipisicing elit"}'
curl -XPOST "http://localhost:9200/bug/_refresh"
curl -XPOST "http://localhost:9200/bug/article/_search?pretty=true" -d '
{
"query":{