Routing problem for mlt API

Hi all,
I indexed some document using parent/child relationship, passing routing
and parent when I POST the childs. Now I would like to use the mlt API but
I am probably missing the way to pass the routing, since it doesn't find
the document. For example:

The regular get API is working with this:

/gsa_test/text/71450?routing=3hkTeAS5e3cpaDBk4Gsn2i

While this:

/gsa_test/text/71450/_mlt?routing=3hkTeAS5e3cpaDBk4Gsn2i&min_term_freq=1

gets {"error":"ElasticSearchException[document missing]","status":500}

What I am doing wrong?

--

Hi,

I think this is a bug. Looking at the code it seems that the mlt api
doesn't take the routing into account.
I'll look into this.

Martijn

On 15 December 2012 17:15, dd dd.nexus@gmail.com wrote:

Hi all,
I indexed some document using parent/child relationship, passing routing and
parent when I POST the childs. Now I would like to use the mlt API but I am
probably missing the way to pass the routing, since it doesn't find the
document. For example:

The regular get API is working with this:

/gsa_test/text/71450?routing=3hkTeAS5e3cpaDBk4Gsn2i

While this:

/gsa_test/text/71450/_mlt?routing=3hkTeAS5e3cpaDBk4Gsn2i&min_term_freq=1

gets {"error":"ElasticSearchException[document missing]","status":500}

What I am doing wrong?

--

--
Met vriendelijke groet,

Martijn van Groningen

--

I created the following issue for this bug:

Martijn

On 17 December 2012 10:29, Martijn v Groningen
martijn.v.groningen@gmail.com wrote:

Hi,

I think this is a bug. Looking at the code it seems that the mlt api
doesn't take the routing into account.
I'll look into this.

Martijn

On 15 December 2012 17:15, dd dd.nexus@gmail.com wrote:

Hi all,
I indexed some document using parent/child relationship, passing routing and
parent when I POST the childs. Now I would like to use the mlt API but I am
probably missing the way to pass the routing, since it doesn't find the
document. For example:

The regular get API is working with this:

/gsa_test/text/71450?routing=3hkTeAS5e3cpaDBk4Gsn2i

While this:

/gsa_test/text/71450/_mlt?routing=3hkTeAS5e3cpaDBk4Gsn2i&min_term_freq=1

gets {"error":"ElasticSearchException[document missing]","status":500}

What I am doing wrong?

--

--
Met vriendelijke groet,

Martijn van Groningen

--
Met vriendelijke groet,

Martijn van Groningen

--

Thank you!

On Mon, Dec 17, 2012 at 10:41 AM, Martijn v Groningen <
martijn.v.groningen@gmail.com> wrote:

I created the following issue for this bug:
https://github.com/elasticsearch/elasticsearch/issues/2489

Martijn

On 17 December 2012 10:29, Martijn v Groningen
martijn.v.groningen@gmail.com wrote:

Hi,

I think this is a bug. Looking at the code it seems that the mlt api
doesn't take the routing into account.
I'll look into this.

Martijn

On 15 December 2012 17:15, dd dd.nexus@gmail.com wrote:

Hi all,
I indexed some document using parent/child relationship, passing
routing and

parent when I POST the childs. Now I would like to use the mlt API but
I am

probably missing the way to pass the routing, since it doesn't find the
document. For example:

The regular get API is working with this:

/gsa_test/text/71450?routing=3hkTeAS5e3cpaDBk4Gsn2i

While this:

/gsa_test/text/71450/_mlt?routing=3hkTeAS5e3cpaDBk4Gsn2i&min_term_freq=1

gets {"error":"ElasticSearchException[document missing]","status":500}

What I am doing wrong?

--

--
Met vriendelijke groet,

Martijn van Groningen

--
Met vriendelijke groet,

Martijn van Groningen

--

--