# \[ANN\] geocluster-facet 0.0.1

**URL:** <https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748>\
**Category:** Elasticsearch\
**Created:** [November 17, 2012, 2:20am UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748 "2012-11-17T02:20:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_jain/32/834_2.png) [@Eric\_Jain](https://discuss.elastic.co/u/Eric_Jain)\
**Post date:** [November 17, 2012, 2:20am UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/1 "2012-11-17T02:20:34Z")

</div>

Here's a (somewhat simplistic) facet that clusters geo\_points:

[https://github.com/zenobase/geocluster-facet](https://github.com/zenobase/geocluster-facet)

You can see this plugin in action here:

[https://zenobase.com/#/buckets/u07qih0a27/](https://zenobase.com/#/buckets/u07qih0a27/)

Hoping to get some feedback, suggestions for improvements etc!

--

---

<div class="post-metadata">

**Author:** ![medcl\_net](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@medcl\_net](https://discuss.elastic.co/u/medcl_net)\
**Post date:** [November 17, 2012, 2:37am UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/2 "2012-11-17T02:37:03Z")

</div>

nice plugin,thanks for sharing~

On Sat, Nov 17, 2012 at 10:20 AM, Eric Jain [eric.jain@gmail.com](mailto:eric.jain@gmail.com) wrote:

> Here's a (somewhat simplistic) facet that clusters geo\_points:
> 
> [GitHub - zenobase/geocluster-facet](https://github.com/zenobase/geocluster-facet)
> 
> You can see this plugin in action here:
> 
> [Zenobase](https://zenobase.com/#/buckets/u07qih0a27/)
> 
> Hoping to get some feedback, suggestions for improvements etc!
> 
> --

--

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 17, 2012, 6:02pm UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/3 "2012-11-17T18:02:49Z")

</div>

Hi Eric,

this is amazing! I will play with it if it's possible to visualize the  
geographic distribution of media resources that are available in libraries  
for access.

Many thanks!

Jörg

On Saturday, November 17, 2012 3:20:34 AM UTC+1, Eric Jain wrote:

> Here's a (somewhat simplistic) facet that clusters geo\_points:
> 
> [GitHub - zenobase/geocluster-facet](https://github.com/zenobase/geocluster-facet)
> 
> You can see this plugin in action here:
> 
> [Zenobase](https://zenobase.com/#/buckets/u07qih0a27/)
> 
> Hoping to get some feedback, suggestions for improvements etc!

--

---

<div class="post-metadata">

**Author:** ![Dan\_Fairs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_fairs/32/1205_2.png) [@Dan\_Fairs](https://discuss.elastic.co/u/Dan_Fairs)\
**Post date:** [November 17, 2012, 7:10pm UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/4 "2012-11-17T19:10:39Z")

</div>

This looks great! I'm definitely going to take this for a spin, and I'll try to contribute back any fixes/changes we make.

Slightly OT: I haven't done any Java for about 8 years. Things are a little different now on the build front (maven/pom.xml etc). Do you have any pointers for someone like me to update their knowledge of modern Java development tools? (Or, put another way, what's the best place for me to learn how to wrangle a pom.xml 🙂 )

Thanks!

Cheers,  
Dan

On 17 Nov 2012, at 02:20, Eric Jain [eric.jain@gmail.com](mailto:eric.jain@gmail.com) wrote:

> Here's a (somewhat simplistic) facet that clusters geo\_points:
> 
> [GitHub - zenobase/geocluster-facet](https://github.com/zenobase/geocluster-facet)
> 
> You can see this plugin in action here:
> 
> [Zenobase](https://zenobase.com/#/buckets/u07qih0a27/)
> 
> Hoping to get some feedback, suggestions for improvements etc!
> 
> --

--

---

<div class="post-metadata">

**Author:** ![Eric\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_jain/32/834_2.png) [@Eric\_Jain](https://discuss.elastic.co/u/Eric_Jain)\
**Post date:** [November 18, 2012, 3:59am UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/5 "2012-11-18T03:59:43Z")

</div>

On Sat, Nov 17, 2012 at 11:10 AM, Dan Fairs [dan.fairs@gmail.com](mailto:dan.fairs@gmail.com) wrote:

> Slightly OT: I haven't done any Java for about 8 years. Things are a little  
> different now on the build front (maven/pom.xml etc). Do you have any  
> pointers for someone like me to update their knowledge of modern Java  
> development tools? (Or, put another way, what's the best place for me to  
> learn how to wrangle a pom.xml 🙂 )

Checking out a project and then building it with Maven from the  
command line is simple enough (i.e. `mvn package`). Just don't attempt  
to customize the build process 🙂

I use Eclipse with the m2eclipse plugin [[M2Eclipse | M2Eclipse](http://eclipse.org/m2e/)].  
This plugin can generate the .project and .classpath files for Eclipse  
from the pom.xml. It also provides a graphical editor for the pom.xml  
and can run builds from within Eclipse.

--

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [November 18, 2012, 7:42am UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/6 "2012-11-18T07:42:47Z")

</div>

Hello Eric ,

Am not sure what i should be seeing in this site -  
[Zenobase](https://zenobase.com/#/buckets/u07qih0a27/).

All i am seeing is this - [Twitpic](http://twitpic.com/be7x7r)

Kindly let me know , if i am missing anything.

Thanks  
Vineeth

On Sat, Nov 17, 2012 at 7:50 AM, Eric Jain [eric.jain@gmail.com](mailto:eric.jain@gmail.com) wrote:

> Here's a (somewhat simplistic) facet that clusters geo\_points:
> 
> [GitHub - zenobase/geocluster-facet](https://github.com/zenobase/geocluster-facet)
> 
> You can see this plugin in action here:
> 
> [Zenobase](https://zenobase.com/#/buckets/u07qih0a27/)
> 
> Hoping to get some feedback, suggestions for improvements etc!
> 
> --

--

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 18, 2012, 5:29pm UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/7 "2012-11-18T17:29:21Z")

</div>

Hi Dan,

some tips about Java development with ES:

- clone the git repo of the ES plugin. If you want to maintain a branch  
with your changes to get integrated into the main development later, fork  
it. Check [Fork a repo - GitHub Docs](https://help.github.com/articles/fork-a-repo)

- ES builds use Maven right now. Maven is a project management tool with  
pros & cons, but the strength is, it can be also invoked from command line  
(without IDE) but also a lot of good IDE integrations are available, so  
developers can easily step in into the ES development by firing up their  
favorite IDE

- the easiest method to start development with an ES plugin in my opinion  
is provided by Netbeans. Netbeans comes with embedded mvn and git  
out-of-the-box. Just download Netbeans from  
[Apache NetBeans Releases](http://netbeans.org/downloads/) I prefer the "full" package because I like  
the integration of Java EE, Glassfish, Groovy, and PHP, but "Netbeans Java  
SE" is enough for ES plugins.

- in Netbeans, select "Open Project" and select the ES plugin directory,  
then open it. Netbeans detects Maven projets automatically. That's it.  
Refer to the Netbeans menu how to build the plugin with the IDE.

Most important Maven commands are:

mvn clean -\> remove all temporary build files and artifacts  
mvn clean test -\> build the plugin as a JAR, run tests, do not install  
mvn clean install -\> build the plugin as a JAR, create a ZIP artifact, and  
install all artificats into your local Maven repo

You can examine the pom.xml and play with it to find out how it works.  
There is a huge amount of complexity behind Maven builds, but ES builds  
only exploit a few of them.

The plugin release artifact is a ZIP file in the target/releases folder.  
You can take this file to install it into your ES instance. Under ES\_HOME,  
you can create a "plugins" folder with a plugin named subfolder (e.g.  
$ES\_HOME/plugins/facet-geocluster). Unpack your plugin ZIP file at this  
location before starting the ES instance with ./bin/elastisearch -f. Check  
the second line of the log lines for the successful loading of the plugin.  
Stop ES and start ES again when updating your plugin.

These are just the basic steps to deploy a plugin, I hope this helps to get  
you started.

Cheers and happy building,

Jörg

On Saturday, November 17, 2012 8:10:45 PM UTC+1, Dan Fairs wrote:

> This looks great! I'm definitely going to take this for a spin, and I'll  
> try to contribute back any fixes/changes we make.
> 
> Slightly OT: I haven't done any Java for about 8 years. Things are a  
> little different now on the build front (maven/pom.xml etc). Do you have  
> any pointers for someone like me to update their knowledge of modern Java  
> development tools? (Or, put another way, what's the best place for me to  
> learn how to wrangle a pom.xml 🙂 )
> 
> Thanks!
> 
> Cheers,  
> Dan

--

---

<div class="post-metadata">

**Author:** ![Eric\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_jain/32/834_2.png) [@Eric\_Jain](https://discuss.elastic.co/u/Eric_Jain)\
**Post date:** [November 18, 2012, 7:23pm UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/8 "2012-11-18T19:23:28Z")

</div>

On Sat, Nov 17, 2012 at 11:42 PM, Vineeth Mohan  
[vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) wrote:

> Am not sure what i should be seeing in this site -  
> [Zenobase](https://zenobase.com/#/buckets/u07qih0a27/).
> 
> All i am seeing is this - [Twitpic](http://twitpic.com/be7x7r)
> 
> Kindly let me know , if i am missing anything.

There was an issue with fractional timezones (such as +5:30 for India).

It's unrelated to the clustering plugin, but should be fixed now.

--

---

<div class="post-metadata">

**Author:** ![Dan\_Fairs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_fairs/32/1205_2.png) [@Dan\_Fairs](https://discuss.elastic.co/u/Dan_Fairs)\
**Post date:** [November 19, 2012, 1:14pm UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/9 "2012-11-19T13:14:18Z")

</div>

Hi Jörg (and Eric),

Many thanks for your detailed responses - they're greatly appreciated!

Cheers,  
Dan

On 18 Nov 2012, at 17:29, Jörg Prante [joergprante@gmail.com](mailto:joergprante@gmail.com) wrote:

> Hi Dan,
> 
> some tips about Java development with ES:
> 
> - clone the git repo of the ES plugin. If you want to maintain a branch with your changes to get integrated into the main development later, fork it. Check [Fork a repo - GitHub Docs](https://help.github.com/articles/fork-a-repo)
> 
> - ES builds use Maven right now. Maven is a project management tool with pros & cons, but the strength is, it can be also invoked from command line (without IDE) but also a lot of good IDE integrations are available, so developers can easily step in into the ES development by firing up their favorite IDE
> 
> - the easiest method to start development with an ES plugin in my opinion is provided by Netbeans. Netbeans comes with embedded mvn and git out-of-the-box. Just download Netbeans from [Apache NetBeans Releases](http://netbeans.org/downloads/) I prefer the "full" package because I like the integration of Java EE, Glassfish, Groovy, and PHP, but "Netbeans Java SE" is enough for ES plugins.
> 
> - in Netbeans, select "Open Project" and select the ES plugin directory, then open it. Netbeans detects Maven projets automatically. That's it. Refer to the Netbeans menu how to build the plugin with the IDE.
> 
> Most important Maven commands are:
> 
> mvn clean -\> remove all temporary build files and artifacts  
> mvn clean test -\> build the plugin as a JAR, run tests, do not install  
> mvn clean install -\> build the plugin as a JAR, create a ZIP artifact, and install all artificats into your local Maven repo
> 
> You can examine the pom.xml and play with it to find out how it works. There is a huge amount of complexity behind Maven builds, but ES builds only exploit a few of them.
> 
> The plugin release artifact is a ZIP file in the target/releases folder. You can take this file to install it into your ES instance. Under ES\_HOME, you can create a "plugins" folder with a plugin named subfolder (e.g. $ES\_HOME/plugins/facet-geocluster). Unpack your plugin ZIP file at this location before starting the ES instance with ./bin/elastisearch -f. Check the second line of the log lines for the successful loading of the plugin. Stop ES and start ES again when updating your plugin.
> 
> These are just the basic steps to deploy a plugin, I hope this helps to get you started.
> 
> Cheers and happy building,
> 
> Jörg
> 
> On Saturday, November 17, 2012 8:10:45 PM UTC+1, Dan Fairs wrote:  
> This looks great! I'm definitely going to take this for a spin, and I'll try to contribute back any fixes/changes we make.
> 
> Slightly OT: I haven't done any Java for about 8 years. Things are a little different now on the build front (maven/pom.xml etc). Do you have any pointers for someone like me to update their knowledge of modern Java development tools? (Or, put another way, what's the best place for me to learn how to wrangle a pom.xml 🙂 )
> 
> Thanks!
> 
> Cheers,  
> Dan
> 
> --

--  
Dan Fairs | [dan.fairs@gmail.com](mailto:dan.fairs@gmail.com) | @danfairs | [secondsync.com](http://secondsync.com)

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:03am UTC](https://discuss.elastic.co/t/ann-geocluster-facet-0-0-1/9748/10 "2017-07-06T03:03:43Z")

</div>


