Product categorization using ES?

Has anyone managed to get product (or maybe in a more general way document) categorization to work?

I have an index structured like:

Then I'd like to run new title/descriptions for ES to classify in a category. This might not be the ideal use-case for ES, but I'm wondering if it's doable.

This seems like a pretty basic use case for ES, but you're kinda light on details.