Archive for Mai 29th, 2021

France Île de Porquerolles – online webcam

Samstag, Mai 29th, 2021

Austria Sölkpass – Schneeräumung 2021

Samstag, Mai 29th, 2021

Elasticsearch Tutorial For Beginners – create index add documents and searching

Samstag, Mai 29th, 2021

root@pve-02-ubuntu-2:~# systemctl status elasticsearch.service
* elasticsearch.service – Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor >
Active: active (running) since Sat 2021-05-29 08:45:04 UTC; 33s ago
Docs: https://www.elastic.co
Main PID: 122 (java)
Tasks: 62 (limit: 4915)
Memory: 1.3G
CGroup: /system.slice/elasticsearch.service
|-122 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkad>
`-483 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/>
May 29 08:44:51 pve-02-ubuntu-2 systemd[1]: Starting Elasticsearch…
May 29 08:45:04 pve-02-ubuntu-2 systemd[1]: Started Elasticsearch.
root@pve-02-ubuntu-2:~# curl http://localhost:9200
{
„name“ : „pve-02-ubuntu-2“,
„cluster_name“ : „elasticsearch“,
„cluster_uuid“ : „4V-Zj5WdRfCW4CXFRcez7Q“,
„version“ : {
„number“ : „7.12.1“,
„build_flavor“ : „default“,
„build_type“ : „deb“,
„build_hash“ : „3186837139b9c6b6d23c3200870651f10d3343b7“,
„build_date“ : „2021-04-20T20:56:39.040728659Z“,
„build_snapshot“ : false,
„lucene_version“ : „8.8.0“,
„minimum_wire_compatibility_version“ : „6.8.0“,
„minimum_index_compatibility_version“ : „6.0.0-beta1“
},
„tagline“ : „You Know, for Search“
}
root@pve-02-ubuntu-2:~# curl -X GET „localhost:9200/_cat/indices?v&pretty“
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
root@pve-02-ubuntu-2:~# curl -XPUT „localhost:9200/test_index?pretty“
{
„acknowledged“ : true,
„shards_acknowledged“ : true,
„index“ : „test_index“
}
root@pve-02-ubuntu-2:~# curl -X GET „localhost:9200/_cat/indices?v&pretty
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open test_index jP-SMavlQ62f5DewdLuNLg 1 1 0 0 208b 208b
root@pve-02-ubuntu-2:~# curl -XDELETE „localhost:9200/test_index?pretty“
{
„acknowledged“ : true
}
root@pve-02-ubuntu-2:~# curl -XPUT „localhost:9200/products/mobiles/1?pretty“ -H ‚Content-Type: application/json‘ -d‘
> {
> „name“: „iPhone“,
> „camera“: „12MP“
> }
> ‚
{
„_index“ : „products“,
„_type“ : „mobiles“,
„_id“ : „1“,
„_version“ : 1,
„result“ : „created“,
„_shards“ : {
„total“ : 2,
„successful“ : 1,
„failed“ : 0
},
„_seq_no“ : 0,
„_primary_term“ : 1
}
root@pve-02-ubuntu-2:~# curl -X GET „localhost:9200/_cat/indices?v&pretty
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open test_index jP-SMavlQ62f5DewdLuNLg 1 1 0 0 208b 208b
yellow open products o5Xg9jLxQh-ZgXbzWQpa0A 1 1 1 0 4.4kb 4.4kb
root@pve-02-ubuntu-2:~# curl -XPUT „localhost:9200/products/mobiles/2?pretty“ -H ‚Content-Type: application/json‘ -d‘
> {
> „name“: „iPhone“,
> „camera“: „24MP“
> }
>
{
„_index“ : „products“,
„_type“ : „mobiles“,
„_id“ : „2“,
„_version“ : 1,
„result“ : „created“,
„_shards“ : {
„total“ : 2,
„successful“ : 1,
„failed“ : 0
},
„_seq_no“ : 1,
„_primary_term“ : 1
}
root@pve-02-ubuntu-2:~# curl -X GET „localhost:9200/_cat/indices?v&pretty“
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open test_index jP-SMavlQ62f5DewdLuNLg 1 1 0 0 208b 208b
yellow open products o5Xg9jLxQh-ZgXbzWQpa0A 1 1 2 0 8.5kb 8.5kb
root@pve-02-ubuntu-2:~# curl -XGET „localhost:9200/products/_search?pretty“ -H ‚Content-Type: application/json‘ -d‘
{
„query“: {
„match_phrase“: {
„camera“: „24MP“
}
}
}

{
„took“ : 47,
„timed_out“ : false,
„_shards“ : {
„total“ : 1,
„successful“ : 1,
„skipped“ : 0,
„failed“ : 0
},
„hits“ : {
„total“ : {
„value“ : 1,
„relation“ : „eq“
},
„max_score“ : 0.6931471,
„hits“ : [
{
„_index“ : „products“,
„_type“ : „mobiles“,
„_id“ : „2“,
„_score“ : 0.6931471,
„_source“ : {
„name“ : „iPhone“,
„camera“ : „24MP“
}
}
]
}
}
root@pve-02-ubuntu-2:~# curl -XGET „localhost:9200/products/_search?pretty“ -H ‚Content-Type: application/json‘ -d‘
{
„query“: {
„match_phrase“: {
„camera“: „12MP“
}
}
}

{
„took“ : 1,
„timed_out“ : false,
„_shards“ : {
„total“ : 1,
„successful“ : 1,
„skipped“ : 0,
„failed“ : 0
},
„hits“ : {
„total“ : {
„value“ : 1,
„relation“ : „eq“
},
„max_score“ : 0.6931471,
„hits“ : [
{
„_index“ : „products“,
„_type“ : „mobiles“,
„_id“ : „1“,
„_score“ : 0.6931471,
„_source“ : {
„name“ : „iPhone“,
„camera“ : „12MP“
}
}
]
}
}

root@pve-02-ubuntu-2:~# curl -XPUT „localhost:9200/shakespeare/_bulk?pretty“ -H ‚Content-Type: application/json‘ –data-binary @shakespeare_6.0.json
root@pve-02-ubuntu-2:~# curl -X GET „localhost:9200/_cat/indices?v&pretty“
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open shakespeare rV1bXB_8RGeIdd-zKSX0SQ 1 1 111396 0 19.3mb 19.3mb
yellow open test_index jP-SMavlQ62f5DewdLuNLg 1 1 0 0 208b 208b
root@pve-02-ubuntu-2:~# curl -XGET „localhost:9200/shakespeare/_search?pretty“ -H ‚Content-Type: application/json‘ -d‘
{
„query“: {
„match_phrase“: {
„text_entry“: „So shaken as we are“
}
}
}

{
„took“ : 13,
„timed_out“ : false,
„_shards“ : {
„total“ : 1,
„successful“ : 1,
„skipped“ : 0,
„failed“ : 0
},
„hits“ : {
„total“ : {
„value“ : 1,
„relation“ : „eq“
},
„max_score“ : 21.60624,
„hits“ : [
{
„_index“ : „shakespeare“,
„_type“ : „_doc“,
„_id“ : „3“,
„_score“ : 21.60624,
„_source“ : {
„type“ : „line“,
„line_id“ : 4,
„play_name“ : „Henry IV“,
„speech_number“ : 1,
„line_number“ : „1.1.1“,
„speaker“ : „KING HENRY IV“,
„text_entry“ : „So shaken as we are, so wan with care,“
}
}
]
}
}

Samstag, Mai 29th, 2021

Samstag, Mai 29th, 2021

Rolls-Royce Boat Tail – meals on wheels

Samstag, Mai 29th, 2021

JSON Formatter – you can use these tools for formatting and validating JSON to make sure it is a valid JSON file

Samstag, Mai 29th, 2021

jsonformatter.org

jsonformatter.curiousconcept.com