Skip to content

Instantly share code, notes, and snippets.

Avatar

Olger Warnier olger

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am olger on github.
  • I am olger (https://keybase.io/olger) on keybase.
  • I have a public key whose fingerprint is 4285 58B9 A928 0CA7 585E 1E77 0A29 4FFD 5F58 116B

To claim this, I am signing this object:

@olger
olger / elasticsearch_text_or_term.sh
Last active Dec 14, 2015
This creates a new index with to documents of type 'project'. Thereafter it tries to find a project with the driver 'ural" that works with the 'match' option and is filtered with terms on the 'viewRights'
View elasticsearch_text_or_term.sh
curl -XDELETE "http://localhost:9200/tip"
curl -XPOST "http://localhost:9200/tip/" -d '{}'
curl -XPUT 'http://localhost:9200/tip/project/_mapping' -d '
{
"project" : {
"properties" : {
"active" : {
"type" : "boolean"