Question about spring-elasticsearch and rivers

hi all,

I have two questions,

  1. I'm using elasticsearch java api with spring-elasticsearch, when I
    start my application, it will create a new instance of elasticsearch ?! a
    new cluster?
  2. I use two rivers, its will be interesting to index different data
    drived from the two rivers under the same index, but have different types,
    or to index them in a separated index ?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

i user, jdbc river and fs river

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

1/
It depends. If you use the spring factories to build transport client that connect to external node, it will create an instance of a transport client.
If you start a node without any properties, it will be a full node. If this node is alone on your network, this node will create a new cluster.
If there are already running nodes on your network, this node will be part of the cluster.
If you define your node as a client node only, it will act as a Node within the cluster but won't hold any data. It will only help to get a client from this node.

2/
You can organize things as you want and as you need.
Note that if you need a very big index for your SQL stuff and a small one for files, you can have a better tuning options using two different index.
Each one manages its number of shards.
It's really up to you.

My 2 cents

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 7 mars 2013 à 14:59, Ammar Yahia yahia.ammar.info@gmail.com a écrit :

hi all,

I have two questions,

  1. I'm using elasticsearch java api with spring-elasticsearch, when I start my application, it will create a new instance of elasticsearch ?! a new cluster?
  2. I use two rivers, its will be interesting to index different data drived from the two rivers under the same index, but have different types, or to index them in a separated index ?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

ok, it's more clear now, thx David :slight_smile:

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

In the JDBC river, you set a parameter "type" to address the type in the
index where you want to fetch the JDBC data into, or the type will be
"jdbc" by default. Same is for the "index" parameter.

Jörg

Am 07.03.13 14:59, schrieb Ammar Yahia:

  1. I use two rivers, its will be interesting to index different data
    drived from the two rivers under the same index, but have different
    types, or to index them in a separated index ?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.