Skip to content

Instantly share code, notes, and snippets.

View wshirey's full-sized avatar

Wally S wshirey

  • Shipt
View GitHub Profile
@wshirey
wshirey / index_alias_per_client_example.json
Last active June 23, 2017 15:22
index alias per client example
# clear out any previous test data
DELETE test*/
# create index 1
POST test.1/test/1
{
"client_id": 9991
}
# create index 2
@wshirey
wshirey / ngram_analyzer_multifield.json
Last active August 17, 2017 21:49
elasticsearch ngram analyzer with multifields
DELETE my_index
PUT my_index
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"filter": ["english_stop", "lowercase"],
"tokenizer": "my_tokenizer"
@wshirey
wshirey / pet.yaml
Last active October 27, 2017 16:23
pet swagger example with additionalproperties
swagger: "2.0"
info:
description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
version: "1.0.0"
title: "Swagger Petstore"
termsOfService: "http://swagger.io/terms/"
contact:
email: "apiteam@swagger.io"
license:
name: "Apache 2.0"
swagger: "2.0"
info:
description: Sample description
version: "1.0.0"
title: Sample title
host: petstore.swagger.io
basePath: /v3
paths:
/carts/{cart_id}/product_bundles/{product_bundle_id}/questions:
get: