sorry my bad. it works..
The _routing field always return a string. not sure what I did wrong last
On Tue, Oct 9, 2012 at 6:12 PM, Yuhan Zhang firstname.lastname@example.org wrote:
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
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?
Senior Software Engineer
(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.