sksamuel/elastic4s — pull request #181 by jdutton (2014-07-25 01:36:46+00:00)
Title: Add GetDefinition parent() to scala DSL

This is a pretty minor change, but I am submitting it so the "next guy" doesn't get confused like I did.

When I first stumbled on the missing parent() method in the DSL, I implemented a workaround in my code to be able to get my child documents. It was only when I went to add the parent() method to GetDefinition and implement the simple unit test that I noticed that setting parent() and routing() are really identical. In fact there is no getter for parent(), so the unit test has to access routing() to check the value that was set.

So at this point I have a clean workaround in my application (use routing() rather than parent()), but I still feel this should be pushed into elastic to prevent confusion for others.