Subject | Hash | Author | Date (UTC) |
---|---|---|---|
rename type to type_of | e1fcd27b05eabc8bce06751a9925200e4707168b | dleucas | 2019-06-14 02:34:15 |
add animal behavior transformation and documentation | 7550db3bbd1c69c9369cf8dfe3a5d1195e761ae2 | dleucas | 2019-06-14 00:57:16 |
add lost modified date | c4922a44cebebd63da6c23a2a71f97cdb47b4a68 | dleucas | 2019-06-12 22:46:35 |
describe remaining db fields | e3c7f44ad24a3d7c8e4eb74c777a4eecc3675d75 | dleucas | 2019-06-11 21:37:06 |
WIP document acoustat | 3a47cfcfa204503f682879d7485a6ef941e248e4 | dleucas | 2019-06-07 00:17:30 |
WIP document acoustat | 4591875fd32c1c91d20133ff90dcf5676b3c216c | dleucas | 2019-06-07 00:08:18 |
WIP document acoustat | ccc4a6de663a7272ee3d5777fe1479af549e9938 | dleucas | 2019-06-06 01:39:08 |
WIP document acoustat | 1c6b03267e3016d9b637775df2b4b153866ac040 | dleucas | 2019-06-05 22:39:39 |
add dependency on nav.html and pandoc.css | b4f054eb6675117d576fa9462220bc5bc8d15be4 | dleucas | 2019-06-01 01:12:44 |
nav title | 7c5fadd2e143028d614fab4c31ed7389ed17e6f6 | dleucas | 2019-06-01 01:12:04 |
document world map | 07b70f4b85731456b559edeecea12b339e724aaf | dleucas | 2019-06-01 01:11:43 |
use live ElasticSearch URL in example query | b6df3b91ba395f62003fa89f1d6ae3f6a705ea9e | dleucas | 2019-05-31 23:38:40 |
Document geo coordinates based on the .GC field | d3c9fc90773c6252209074583a00b290633f340c | dleucas | 2019-05-31 23:24:02 |
transform geo coordinates | b32a76ac0917bc3c8bb85e225b19004bc56ac929 | dleucas | 2019-05-31 22:26:16 |
update index mapping with geo_point for location coordinates | 510a37c03a86603425c6af347c038d69d7fa0cde | dleucas | 2019-05-31 22:24:42 |
WIP search by geo distance | 61e13ff42bf7e9d283c7d18087c14bb30c2e69c8 | dleucas | 2019-05-31 22:16:46 |
about page: show task progress | 9372732e21c753f99d706a474cb3a74394ced1dc | dleucas | 2019-05-24 01:04:07 |
data page: describe mapping, clean-up table | a78264311f89a3b67d40fa8ba3d768c3ec9b2592 | dleucas | 2019-05-24 00:33:21 |
add site navigation, remove clutter | 9e0361707284cc01d6795195df6848c1f20e88cc | dleucas | 2019-05-23 01:21:22 |
WIP initial changelog | 12150e01cbb190f83d9e5f02f1431a4856c780d2 | dleucas | 2019-05-23 01:20:30 |
File | Lines added | Lines deleted |
---|---|---|
index.mapping.json | 16 | 0 |
transform.jq | 2 | 2 |
File index.mapping.json changed (mode: 100644) (index 717574e..e3d62ee) | |||
7 | 7 | "index": "no", | "index": "no", |
8 | 8 | "type": "string" | "type": "string" |
9 | 9 | }, | }, |
10 | "behavior": { | ||
11 | "properties": { | ||
12 | "type_of": { | ||
13 | "index": "not_analyzed", | ||
14 | "type": "string" | ||
15 | }, | ||
16 | "species_code": { | ||
17 | "index": "not_analyzed", | ||
18 | "type": "string" | ||
19 | } | ||
20 | } | ||
21 | }, | ||
10 | 22 | "genus": { | "genus": { |
11 | 23 | "properties": { | "properties": { |
12 | 24 | "name": { | "name": { |
63 | 75 | } | } |
64 | 76 | } | } |
65 | 77 | }, | }, |
78 | "last_modified_date": { | ||
79 | "format": "dateOptionalTime", | ||
80 | "type": "date" | ||
81 | }, | ||
66 | 82 | "location": { | "location": { |
67 | 83 | "properties": { | "properties": { |
68 | 84 | "coordinates": { | "coordinates": { |
File transform.jq changed (mode: 100755) (index 35179f2..0016ceb) | |||
... | ... | def as_coord: | |
282 | 282 | map(. as $b | match("[A-C][A-Z]\\d+[A-Z]([\\s\\.]+)?$"; "m")//false | | map(. as $b | match("[A-C][A-Z]\\d+[A-Z]([\\s\\.]+)?$"; "m")//false | |
283 | 283 | if . then | if . then |
284 | 284 | { | { |
285 | type: ($b[0:.offset] | gsub("^\\s+|\\s+$";"") | if (.|length) > 0 then . else null end), | ||
285 | type_of: ($b[0:.offset] | gsub("^\\s+|\\s+$";"") | if (.|length) > 0 then . else null end), | ||
286 | 286 | species_code: .string | gsub("^\\s+|\\s+$";"") | species_code: .string | gsub("^\\s+|\\s+$";"") |
287 | 287 | } | } |
288 | 288 | # fallback without species code | # fallback without species code |
289 | 289 | else | else |
290 | { type: $b | gsub("^\\s+|\\s+$";"") } | ||
290 | { type_of: $b | gsub("^\\s+|\\s+$";"") } | ||
291 | 291 | end | end |
292 | 292 | ) | ) |
293 | 293 | ), | ), |