>{"acknowledged":true} >{"error":{"root_cause":[{"type":"index_already_exists_exception","reason ":"already exists","index":"test"}],"type":"index_already_exists_exception","reason" :"already exists","index":"test"},"status":400} Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 5
>{"acknowledged":true} >{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"test","index":"tes t"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"test","index":"tes t"},"status":404} Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 6
a type (delete + create) $ curl -XPUT -k localhost:9200/test/_mapping/item -d ' {"properties":{ "name":{ "type":"integer"}}}’ >{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"m apper [name] cannot be changed from type [string] to [int]"}],"type":"illegal_argument_exception","reason":"mapper [name] cannot be changed from type [string] to [int]"},"status":400} Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 11
-XGET localhost:9200/test/_mapping >{"test":{"mappings":{"item":{"proper… Hint: json_reformat prettify the JSON Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 12
double, float date boolean binary Ranges: [integer|float…]_range Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 13 Specialized Datatypes Geo-points datatype IP datatype Nested datatype others...
mapping type are not independent of each other Same name in the same index in different mapping types map to the same field internally Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 14
>{"_index":"test","_type":"item","_id":"1","_version":1," _shards":{"total":2,"successful":1,"failed":0},"created": true} Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 15
-d '{"properties":{"age":{"type":"integer"}}}' >{"error":{"root_cause":[{"type":"illegal_argument_except ion","reason":"mapper [age] cannot be changed from type [string] to [int]"}],"type":"illegal_argument_exception","reason":"ma pper [age] cannot be changed from type [string] to [int]"},"status":400} Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 17
>{"test":{"mappings":{"item":{"properties":{"age":{"type" :"string"},"height":{"type":"integer"},"name":{"type":"st ring"}}}}}} Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 19
And “analyzed” => segmentation algorithm Hint: Standard Tokenizer: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-standard-tokenizer.html Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 20
segmented into [“The”, “truth”, “is”, “out”, “there”] The key word “truth” matches that field Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 21
providing useful insights about the software development process. Pretty focused on activity, community and process Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 24
Author: Daniel Izquierdo <[email protected]> AuthorDate: Thu May 26 19:34:07 2016 +0200 Commit: Daniel Izquierdo <[email protected]> CommitDate: Thu May 26 19:34:07 2016 +0200 Add module to deal with format and unification of data Methods receive as entry a pandas.DataFrame. Those return a new dataframe with some basic formating activity such as adding, removing, filling and dates formating. :000000 100644 0000000... 18e533f... A format.py :000000 100644 0000000... e69de29... A tests/__init__.py :000000 100644 0000000... d8685c1... A tests/run_tests.py :000000 100644 0000000... ab74263... A tests/test_format.py 113 0 format.py 0 0 tests/__init__.py 30 0 tests/run_tests.py 55 0 tests/test_format.py Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 27
of author and commit Author and committer Files touched Added and removed lines Hash and message Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 28
dashboard: opnfv.biterg.io Diversity: https://speakerdeck.com/bitergia/diversity-in-open-source-panel Inner Source: as in Inner Source Commons Daniel Izquierdo Cortázar Máster en Data Science. ETSII. 30