Skip to content

Instantly share code, notes, and snippets.

@sangheestyle
Last active October 25, 2018 21:35
Show Gist options
  • Save sangheestyle/2b0c0338780d10c2770b6f5b5e1aaa39 to your computer and use it in GitHub Desktop.
Save sangheestyle/2b0c0338780d10c2770b6f5b5e1aaa39 to your computer and use it in GitHub Desktop.
Query geo position on ES

Query geo position on ElasticSearch

Install ES

Assume you have a mac and use brew. ES requires Java8 so do the following:

brew cask install homebrew/cask-versions/java8
brew search [email protected]
elasticsearch

Then, go to http://localhost:9200/ on your browser. If you can see the following, your are done.

{
name: "fsny2mM",
cluster_name: "elasticsearch_sangheekim",
cluster_uuid: "M6W6pX6jTMeVLI3BaAG11w",
version: {
number: "6.4.2",
build_flavor: "oss",
build_type: "tar",
build_hash: "04711c2",
build_date: "2018-09-26T13:34:09.098244Z",
build_snapshot: false,
lucene_version: "7.4.0",
minimum_wire_compatibility_version: "5.6.0",
minimum_index_compatibility_version: "5.0.0"
},
tagline: "You Know, for Search"
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment