Where the bear got in the buckwheat

Where the bear got in the buckwheat... What are the origins of this phrase? The closest I can find is a Russian story of a man who hunted and thought that he killed a bear, but it escaped and walked through buckwheat which enabled the hunter to catch him once again...