This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT test/_doc/1 | |
{ | |
"test A": "a", | |
"test B": "b" | |
} | |
GET test/_search | |
{ | |
"query": { | |
"match": { | |
"test A": "a" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT test | |
{ | |
"mappings": { | |
"properties": { | |
"linked_ent": { | |
"type": "nested", | |
"properties": { | |
"score": { | |
"type": "float" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET / | |
GET /_analyze | |
{ | |
"analyzer": "english", | |
"text": "These are not the droids you are looking for." | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE test | |
PUT test | |
{ | |
"mappings": { | |
"properties": { | |
"url": { | |
"type": "keyword" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT _template/sample | |
{ | |
"index_patterns": ["sample-*"], | |
"version": 27, | |
"settings": { | |
"index.refresh_interval": "5s", | |
"number_of_shards": 4, | |
"number_of_replicas": 1 | |
}, | |
"mappings": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT /test_index | |
{ | |
"settings": { | |
"index": { | |
"analysis": { | |
"analyzer": { | |
"synonym_analyzer": { | |
"tokenizer": "standard", | |
"filter": [ | |
"synonym_graph" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ELASTIC_VERSION=6.5.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE my_index | |
PUT my_index | |
{ | |
"settings": { | |
"number_of_shards": 1 | |
}, | |
"mappings": { | |
"_doc": { | |
"properties": { | |
"first_name": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '2' | |
services: | |
liferay: | |
image: mdelapenya/liferay-portal:7.1-ce-beta2-tomcat-hsql | |
ports: | |
- 8080:8080 | |
- 11311:11311 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ELASTIC_VERSION=6.3.0 |