Also, is there a way of specifying a custom hashing algorithm? The problem
I'm trying to solve is that the no. of routing keys that I have is around 2
times the number of shards in the index and I want each shard to support
two routing keys.
Also, is there a way of specifying a custom hashing algorithm? The problem
I'm trying to solve is that the no. of routing keys that I have is around 2
times the number of shards in the index and I want each shard to support
two routing keys.
Hi Anand,
any news? Looking back at your question, I wonder why you need to write a
custom hashing algorithm. Can't you just use custom routing? Would love to
know more about your usecase.
Cheers
Luca
On Monday, September 2, 2013 6:06:51 PM UTC+2, Luca Cavanna wrote:
Also, is there a way of specifying a custom hashing algorithm? The
problem I'm trying to solve is that the no. of routing keys that I have is
around 2 times the number of shards in the index and I want each shard to
support two routing keys.
My use case was to have completely predictable routing of documents at
shard level. For example, I wanted to have the document with particular
value of attribute a1 and a2 to go to shard0 and for some other combination
to shard2.
To solve this, I did use a custom routing algorithm that gives a routing
value from A to (A+noOfShards-1). In this way even though I cannot
pinpoint the actual shard where the data goes, I can be sure that data
with routing key k and k+1 goes to adjacent shards.
Anand
On Wednesday, 11 September 2013 19:46:12 UTC+5:30, Luca Cavanna wrote:
Hi Anand,
any news? Looking back at your question, I wonder why you need to write a
custom hashing algorithm. Can't you just use custom routing? Would love to
know more about your usecase.
Cheers
Luca
On Monday, September 2, 2013 6:06:51 PM UTC+2, Luca Cavanna wrote:
Also, is there a way of specifying a custom hashing algorithm? The
problem I'm trying to solve is that the no. of routing keys that I have is
around 2 times the number of shards in the index and I want each shard to
support two routing keys.
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.