Skip to content

Instantly share code, notes, and snippets.

Igor Motov imotov

Block or report user

Report or block imotov

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 regions-ngram.sh
curl -XDELETE localhost:9200/test-idx
curl -XPUT localhost:9200/test-idx -d '{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0,
"analysis": {
"analyzer": {
"region_analyzer": {
"tokenizer": "my_ngram"
View script_sort.sh
curl -XDELETE localhost:9200/test-idx
curl -XPUT localhost:9200/test-idx -d '{
"settings": {
"index": {
"number_of_replicas": 0,
"number_of_shards": 1
}
},
"mappings": {
"doc": {
View 06-01-Test-Data.sh
#!/bin/bash
curl -XDELETE 'http://localhost:9200/test-data/'
curl -XPUT 'http://localhost:9200/test-data/' -d '{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0,
"mapper.dynamic": false,
"analysis": {
"analyzer": {
View gist:5554678
curl -XDELETE 'http://localhost:9200/app'
curl -XPUT 'http://localhost:9200/app' -d '
{
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0
},
"mappings" : {
"parent": {
"properties" : {
View ElasticSearch Highlighting
curl -XDELETE "http://localhost:9200/test/"
curl -XPUT "http://localhost:9200/test/" -d '{
"mappings": {
"product": {
"properties": {
"doc": {
"properties": {
"name": {
"type": "string",
"include_in_all": true
View users.sh
curl -XDELETE localhost:9200/test
curl -XPUT localhost:9200/test -d '{
"mappings": {
"post": {
"_source": {
"enabled": false
},
"properties": {
"date": {
"type": "long",
View prices.sh
curl -XDELETE "localhost:9200/test"
curl -XPUT "localhost:9200/test" -d '{
"mappings": {
"doc": {
"properties": {
"price": {
"type": "long"
},
"colour": {
"type": "string",
View filtering_alias_sort.sh
curl -XDELETE localhost:9200/test
curl -XPUT localhost:9200/test -d '{
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0
}
}
'
curl -XPOST localhost:9200/test/doc/1 -d '{
"foo": 1,
View color_match.sh
curl -XDELETE localhost:9200/test
curl -XPUT localhost:9200/test -d '{
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0
}
}
'
curl -XPOST localhost:9200/test/doc/1 -d '{
"dna":[
View gist:5203687
curl -XDELETE localhost:9200/users
curl -XPUT localhost:9200/users -d '{
"settings": {
"index.number_of_shards": 1,
"index.number_of_replicas": 0
},
"mappings": {
"user": {
"properties": {
"affiliate_program_id": {
You can’t perform that action at this time.