Skip to content

Instantly share code, notes, and snippets.

View imotov's full-sized avatar

Igor Motov imotov

View GitHub Profile
DELETE test
DELETE test-reindexed
PUT test
{
"settings": {
"number_of_replicas": 0,
"number_of_shards": 1
},
"mappings": {
"_doc": {
Запрос 1:
POST tenders_2019/_doc/_search
{
"_source": false,
"timeout": "3m",
"query": {
"bool": {
"filter": [
{
"bool": {
DELETE test
PUT test
{
"mappings": {
"doc": {
"properties": {
"shape": {
"ignore_malformed": true,
"type": "geo_shape",

Keybase proof

I hereby claim:

  • I am imotov on github.
  • I am imotov (https://keybase.io/imotov) on keybase.
  • I have a public key whose fingerprint is 3AD2 00AD 11F8 0B44 21F1 6D11 9DE3 331B 5426 2EAF

To claim this, I am signing this object:

# Create test index
curl -XDELETE 'http://localhost:9200/test-idx?pretty'
curl -XPUT 'http://localhost:9200/test-idx?pretty' -d '{
"settings": {
"index.number_of_shards": 10,
"index.number_of_replicas": 0
}
}'
for i in {1..100}
do
curl -XDELETE "localhost:9200/myindex?pretty"
curl -XPUT "localhost:9200/myindex?pretty" -d '{
"mappings" : {
"inventory" : {
"_all" : {
"auto_boost" : true
},
"properties" : {
"id" : {
"type" : "long",
curl -XDELETE "localhost:9200/test-idx?pretty"
curl -XPUT "localhost:9200/test-idx?pretty" -d '{
"settings": {
"index": {
"analysis": {
"analyzer": {
"dw_docid": {
"type": "custom",
"tokenizer": "dw_docid_tokenizer",
"filter": ["dw_docid_filter"]
@imotov
imotov / geo.sh
Last active August 29, 2015 13:56
curl -XDELETE 'localhost:9200/geotest'
echo
curl -XPOST 'localhost:9200/geotest' -d'{
"settings": {
"number_of_replicas": 0,
"number_of_shards": 1
},
"mappings": {
"doc": {
"properties": {
@imotov
imotov / dates.sh
Created December 15, 2013 21:12
Inconsistent treatment of dates without year
curl -XDELETE "localhost:9200/test-idx?pretty"
curl -XPUT "localhost:9200/test-idx?pretty" -d '{
"settings": {
"number_of_replicas": 0,
"number_of_shards": 1
},
"mappings": {
"doc": {
"properties": {
"event_time" : {
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 3,