Skip to content

Instantly share code, notes, and snippets.

@ThorstenS
ThorstenS / gist:7039670
Created October 18, 2013 10:34
ElasticSearch completion-suggester
curl -X DELETE localhost:9200/geodb
curl -X PUT localhost:9200/geodb
curl -X PUT localhost:9200/geodb/country/_mapping -d '{
"location" : {
"properties" : {
"city" : { "type" : "string" },
"suggest" : { "type" : "completion",
"index_analyzer" : "standard",
"search_analyzer" : "standard",
"payloads" : true
@ThorstenS
ThorstenS / gist:11193188
Created April 22, 2014 20:29
Elasticsearch fuzzy query
curl -XDELETE 'http://localhost:9200/twitter/'
curl -XPUT 'http://localhost:9200/twitter/'
curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '
{
"user": "kimchy",
"postDate": "2009-11-15T13:12:00",
"message": "Trying out Elastic Search, so far so good?",
"location" : {
"lat" : 41.12,
@ThorstenS
ThorstenS / README.md
Created June 27, 2017 07:41 — forked from seignovert/README.md
[Server] Install Gitlab and Mattermost with Let's Encrypt on Ubuntu 16.04

Gitlab and Mattermost installation

Inital DNS and contact emails

Add A record for the following website:

  • git.example.com
  • forum.example.com

And add email redirection for these emails:

  • support.git@example.com
  • forum@example.com