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?
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 ?
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.
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?
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 ?
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:
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 ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.