Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sfomuseum/go-whosonfirst-elasticsearch
Go package for indexing Who's On First records in Elasticsearch.
https://github.com/sfomuseum/go-whosonfirst-elasticsearch
elasticsearch golang whosonfirst
Last synced: about 9 hours ago
JSON representation
Go package for indexing Who's On First records in Elasticsearch.
- Host: GitHub
- URL: https://github.com/sfomuseum/go-whosonfirst-elasticsearch
- Owner: sfomuseum
- License: other
- Archived: true
- Created: 2020-06-04T21:57:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-18T00:08:27.000Z (over 2 years ago)
- Last Synced: 2024-09-22T23:05:30.267Z (4 days ago)
- Topics: elasticsearch, golang, whosonfirst
- Language: Go
- Homepage:
- Size: 24.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-whosonfirst-elasticsearch
Go package for indexing Who's On First records in Elasticsearch.
## Important
This package has been superseded by [sfomuseum/go-elasticsearch-whosonfirst](https://github.com/sfomuseum/go-elasticsearch-whosonfirst) and will not be updated.
## Documentation
[![Go Reference](https://pkg.go.dev/badge/github.com/sfomuseum/go-whosonfirst-elasticsearch.svg)](https://pkg.go.dev/github.com/sfomuseum/go-whosonfirst-elasticsearch)
## Tools
To build binary versions of these tools run the `cli` Makefile target. For example:
```
$> make cli
go build -mod vendor -o bin/es-whosonfirst-index cmd/es-whosonfirst-index/main.go
```### es-whosonfirst-index
```
$> ./bin/es-whosonfirst-index -h
-append-spelunker-v1-properties
Append and index auto-generated Whos On First Spelunker properties.
-elasticsearch-endpoint string
A fully-qualified Elasticsearch endpoint. (default "http://localhost:9200")
-elasticsearch-index string
A valid Elasticsearch index. (default "millsfield")
-index-alt-files
Index alternate geometries.
-index-only-properties
Only index GeoJSON Feature properties (not geometries).
-index-spelunker-v1
Index GeoJSON Feature properties inclusive of auto-generated Whos On First Spelunker properties.
-iterator-uri string
A valid whosonfirst/go-whosonfirst-iterator/emitter URI. Supported emitter URI schemes are: directory://,featurecollection://,file://,filelist://,geojsonl://,git://,repo:// (default "repo://")
-workers int
The number of concurrent workers to index data using. Default is the value of runtime.NumCPU().
```For example:
```
$> bin/es-whosonfirst-index \
-index-spelunker-v1
-elasticsearch-index whosonfirst \
/usr/local/data/whosonfirst-data-admin-ca
```### Known-knowns
#### index-spelunker-v1
* Support for generating `date:` properties derived from `edtf:` property values is currently not available. This is currently blocked on the lack of a Go language `Extended DateTime Format` parser.
## Elasticsearch
This code assumes Elasticsearch 7.x
## See also
* https://github.com/elastic/go-elasticsearch
* https://github.com/whosonfirst/go-whosonfirst-iterate
* https://github.com/whosonfirst/go-whosonfirst-iterate-git