Routing

Hi,

Although I have indexed the documents without routing, whether I do a
search with or without routing always get the same results. Is it
normal?

Thanks

How I can verify that the routing is working correctly?

Thanks

On 8 feb, 18:10, micu99 micuent...@gmail.com wrote:

Hi,

Although I have indexed the documents without routing, whether I do a
search with or without routing always get the same results. Is it
normal?

Thanks

Can anyone help me with this?

Thanks,

On 8 feb, 18:19, micu99 micuent...@gmail.com wrote:

How I can verify that the routing is working correctly?

Thanks

On 8 feb, 18:10, micu99 micuent...@gmail.com wrote:

Hi,

Although I have indexed the documents without routing, whether I do a
search with or without routing always get the same results. Is it
normal?

Thanks

Routing needs to be done at indexing time and at search time. It also
depends on how many shards you have. If you only have 1 shard, then routing
will not do anything. If you have a number of shards, then routing can work
really well.

  • Craig

On Thu, Feb 9, 2012 at 12:22 AM, micu99 micuenta99@gmail.com wrote:

Can anyone help me with this?

Thanks,

On 8 feb, 18:19, micu99 micuent...@gmail.com wrote:

How I can verify that the routing is working correctly?

Thanks

On 8 feb, 18:10, micu99 micuent...@gmail.com wrote:

Hi,

Although I have indexed the documents without routing, whether I do a
search with or without routing always get the same results. Is it
normal?

Thanks

--

CRAIG BROWN
chief architect
youwho, Inc.

www.youwho.com http://www.youwho.com/

T: 801.855. 0921
M: 801.913. 0939

Simplest way would be to index with a routing value, and then do a get without the routing value, and ask for _routing in the fields. If you get a document back, with the _routing in the field, then you have indexed that routing. (we ask for the _routing field as well, since even when you don't provide routing, the id might end up being hashed to the same shard as with the routing value).

On Wednesday, February 8, 2012 at 7:19 PM, micu99 wrote:

How I can verify that the routing is working correctly?

Thanks

On 8 feb, 18:10, micu99 <micuent...@gmail.com (http://gmail.com)> wrote:

Hi,

Although I have indexed the documents without routing, whether I do a
search with or without routing always get the same results. Is it
normal?

Thanks