About field routing and integer type

Hi all,

I just set up one index with field routing with some test data. It stores
properly with some test data.
I could see they consistently fall to the same shard with the same field
value.

However, the type of the field is integer (account_id), the method
.setRouting() takes integer as input.
when I attempt to add .setRouting(""+account_id) it returned me nothing..
(but some other random routing
could reach those shard).

how should I construct the routing correctly from an integer value?.. does
this mean field routing have to be a string type?

Thank you.

Yuhan

--

sorry my bad. it works..

The _routing field always return a string. not sure what I did wrong last
time.

Thank you.

Yuhan

On Tue, Oct 9, 2012 at 6:12 PM, Yuhan Zhang yzhang@onescreen.com wrote:

Hi all,

I just set up one index with field routing with some test data. It stores
properly with some test data.
I could see they consistently fall to the same shard with the same field
value.

However, the type of the field is integer (account_id), the method
.setRouting() takes integer as input.
when I attempt to add .setRouting(""+account_id) it returned me nothing..
(but some other random routing
could reach those shard).

how should I construct the routing correctly from an integer value?.. does
this mean field routing have to be a string type?

Thank you.

Yuhan

--
Yuhan Zhang
Senior Software Engineer
OneScreen Inc.
yzhang@onescreen.com ehorne@onescreen.com
www.onescreen.com
(949) 525-4825 Ext: 177

The information contained in this e-mail is for the exclusive use of the
intended recipient(s) and may be confidential, proprietary, and/or legally
privileged. Inadvertent disclosure of this message does not constitute a
waiver of any privilege. If you receive this message in error, please do
not directly or indirectly print, copy, retransmit, disseminate, or
otherwise use the information. In addition, please delete this e-mail and
all copies and notify the sender.

--