Snippets Collections
PUT http://localhost:9200/_all/_settings

{"index.blocks.read_only_allow_delete": null}
#!/bin/bash
for i in {6000..18000..4000}
  do 
    bin/console fos:elastica:populate --no-reset --first-page="$i" --last-page="$((i + 4000))"
  done
bin/console fos:elastica:populate --no-reset --first-page=18000
es = Elasticsearch()
# get all indices name
indices_names = []
for elem in es.cat.indices(format="json"):
    indices_names.append( elem['index'] )
# get all fileds of index
dict_index_fields = {}
index = 'factiva.snapshot'
mapping = es.indices.get_mapping(index)
dict_index_fields[index] = []
for field in mapping[index]['mappings']['properties']:
    dict_index_fields[index].append(field)
star

Mon Jan 23 2023 09:12:00 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/51445846/elasticsearch-max-virtual-memory-areas-vm-max-map-count-65530-is-too-low-inc

#elasticsearch #docker #kibana
star

Thu Mar 17 2022 12:21:27 GMT+0000 (Coordinated Universal Time)

#php #elasticsearch #fos_elastica
star

Thu Jan 27 2022 19:02:29 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/69127314/fos-elastica-bundle-populate-command-killed-by-oom-reaper-with-out-of-memory

#php #elasticsearch #fos_elastica
star

Thu Oct 14 2021 02:59:38 GMT+0000 (Coordinated Universal Time)

#python #elasticsearch

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension