- I start tow machines and change the name of cluster and the name of
nodes. Elasticsearch just discovery the new node just when i put in
discovey.zen.ping.unicast.hosts the ip of host, thats correct?
You don't need to add ip or hostname in config file as ES automatically
detect nodes in your network.
2)When i search in index, i need to use only one URL like
http://solrcluster and this url will search all nodes. Hi i do this
with Elasticsearch without apache mod_proxy.
What you can also do is to connect to one of the know nodes and ask for
information about the other nodes.
curl -XGET 'http://localhost:9200/_cluster/nodes'
If you use Java, you can start a client only node. It connects to the
cluster and discovers automatically all the cluster nodes, do balancing, ...
3)Exists some API to index objects in ElasticSearch?
Some API that uses Annotations?
I use Jackson to transform my entities to JSON and push them into ES.
There are Jackson annotations.
But, Alois Cochard starts also an OSEM annotation project :
And a nice fork here : https://github.com/poblish/elasticsearch-osem
I didn't use it myself.