Skip to content

Instantly share code, notes, and snippets.

View xeraa's full-sized avatar
🎩
DevRel

Philipp Krenn xeraa

🎩
DevRel
View GitHub Profile
PUT test/_doc/1
{
"test A": "a",
"test B": "b"
}
GET test/_search
{
"query": {
"match": {
"test A": "a"
PUT test
{
"mappings": {
"properties": {
"linked_ent": {
"type": "nested",
"properties": {
"score": {
"type": "float"
}
GET /
GET /_analyze
{
"analyzer": "english",
"text": "These are not the droids you are looking for."
}
@xeraa
xeraa / painless-split-example.json
Last active August 2, 2019 01:51
Painless split example
DELETE test
PUT test
{
"mappings": {
"properties": {
"url": {
"type": "keyword"
}
}
PUT _template/sample
{
"index_patterns": ["sample-*"],
"version": 27,
"settings": {
"index.refresh_interval": "5s",
"number_of_shards": 4,
"number_of_replicas": 1
},
"mappings": {
@xeraa
xeraa / console.json
Created February 26, 2019 05:07
Synonym graph in Elasticsearch with an updated synonym list
PUT /test_index
{
"settings": {
"index": {
"analysis": {
"analyzer": {
"synonym_analyzer": {
"tokenizer": "standard",
"filter": [
"synonym_graph"
@xeraa
xeraa / .env
Last active December 18, 2018 13:33
Zusammengesetzte Worte in Elasticsearch
ELASTIC_VERSION=6.5.3
@xeraa
xeraa / kibana.json
Created October 16, 2018 08:20
Retrieving a copy_to field in Elasticsearch (Kibana syntax)
DELETE my_index
PUT my_index
{
"settings": {
"number_of_shards": 1
},
"mappings": {
"_doc": {
"properties": {
"first_name": {
@xeraa
xeraa / docker-compose.yml
Created October 2, 2018 15:41
Demo for Liferay and Elasticsearch + Kibana
---
version: '2'
services:
liferay:
image: mdelapenya/liferay-portal:7.1-ce-beta2-tomcat-hsql
ports:
- 8080:8080
- 11311:11311
@xeraa
xeraa / .env
Last active January 17, 2020 17:32
Docker: Kibana + Elasticsearch with Stempel, Phonetic, and Language detection
ELASTIC_VERSION=6.3.0