Right way to tag based on keywords

We are migrating a document classifier from a mysql backend to
elasticsearch. While the long term plan is to use naive bayes, in the short
term we want to mimick the existing keyword based process. We have a
category with a list of keywords associated with it, if a document has one
of those keywords, we apply the category. So one way to do this in ES would
be to just search the documents for the keywords, and apply the categories
where we get a match. However I was wondering if there is a smarter way to
do this, possibly using percolators.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.