This file contains 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
## Example gist, showing a possible bug in inner_hits workings in collapse feature when size > amount of results. | |
DELETE webshop | |
#Create some products | |
POST webshop/product/1 | |
{ | |
"title": "The Division - PS4", | |
"family_id": 1 | |
} |
This file contains 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 | |
#Create index | |
PUT test | |
{ | |
"mappings": { | |
"test": { | |
"properties": { | |
"colour": { | |
"type": "keyword" |
This file contains 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 shop | |
PUT shop | |
{ | |
"settings": { | |
"number_of_shards": 1, | |
"number_of_replicas": 0 | |
}, | |
"mappings": { | |
"product": { | |
"properties": { |
This file contains 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
curl -s -XGET "http://localhost:9200/geo/hmpaal/_search?size=5000" -d' {"query":{"filtered":{"filter":{"term":{"lbiClassificatie":"lbi1"}}}}}' | jq -r '.hits.hits[]._source.locatie | join("/")' |
This file contains 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
curl -XGET -s "http://localhost:9200/geo/hmpaal/_search?size=10" | jq -r '.hits.hits[]._source.locatie | join("/")' > hectometerpalen.txt |
This file contains 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
POST test | |
{ | |
"settings": { | |
"number_of_shards": 1, | |
"number_of_replicas": 0 | |
}, | |
"mappings": { | |
"text": { | |
"properties": { | |
"message": { |
NewerOlder