Skip to content

Instantly share code, notes, and snippets.

View laurikari's full-sized avatar

Ville Laurikari laurikari

View GitHub Profile
@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":{
@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: