Skip to content

Instantly share code, notes, and snippets.

🥑
Developer

Philipp Krenn xeraa

🥑
Developer
Block or report user

Report or block xeraa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View search.json
GET /
GET /_analyze
{
"analyzer": "english",
"text": "These are not the droids you are looking for."
}
@xeraa
xeraa / painless-split-example.json
Last active Aug 2, 2019
Painless split example
View painless-split-example.json
DELETE test
PUT test
{
"mappings": {
"properties": {
"url": {
"type": "keyword"
}
}
View data-type.js
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 Feb 26, 2019
Synonym graph in Elasticsearch with an updated synonym list
View console.json
PUT /test_index
{
"settings": {
"index": {
"analysis": {
"analyzer": {
"synonym_analyzer": {
"tokenizer": "standard",
"filter": [
"synonym_graph"
@xeraa
xeraa / .env
Last active Dec 18, 2018
Zusammengesetzte Worte in Elasticsearch
View .env
ELASTIC_VERSION=6.5.3
@xeraa
xeraa / kibana.json
Created Oct 16, 2018
Retrieving a copy_to field in Elasticsearch (Kibana syntax)
View kibana.json
DELETE my_index
PUT my_index
{
"settings": {
"number_of_shards": 1
},
"mappings": {
"_doc": {
"properties": {
"first_name": {
@xeraa
xeraa / docker-compose.yml
Created Oct 2, 2018
Demo for Liferay and Elasticsearch + Kibana
View docker-compose.yml
---
version: '2'
services:
liferay:
image: mdelapenya/liferay-portal:7.1-ce-beta2-tomcat-hsql
ports:
- 8080:8080
- 11311:11311
@xeraa
xeraa / .env
Last active Jan 17, 2020
Docker: Kibana + Elasticsearch with Stempel, Phonetic, and Language detection
View .env
ELASTIC_VERSION=6.3.0
@xeraa
xeraa / .env
Last active Jun 30, 2018
Minimal 3 node Elasticsearch + Kibana setup
View .env
ELASTIC_VERSION=5.6.9
#ELASTIC_VERSION=6.3.0
View field-collapsing.json
# Data
DELETE latest-connection
POST _bulk
{ "index" : { "_index" : "latest-connection", "_type" : "_doc"} }
{ "client": "10.10.10.10", "version": "1.3", "timestamp": "2018-05-01T12:10:30Z" }
{ "index" : { "_index" : "latest-connection", "_type" : "_doc"} }
{ "client": "20.20.20.20", "version": "1.5", "timestamp": "2018-05-01T12:10:30Z" }
{ "index" : { "_index" : "latest-connection", "_type" : "_doc"} }
{ "client": "10.10.10.10", "version": "1.4", "timestamp": "2018-05-02T12:10:30Z" }
{ "index" : { "_index" : "latest-connection", "_type" : "_doc"} }
You can’t perform that action at this time.