I've tried a dozen variations to get this to work, so clearly there is
something I don't understand.
I'm trying to dynamically create a field on an object with both an analyzed
version of the field and a non-analyzed one so that the faceted results can
return individual terms or the whole field.
eg. meta.byline : "Greg Brown" and meta_raw.byline : "Greg Brown"; Result
of the meta_raw.byline facet should be "Greg Brown" while meta.byline
should have two terms: "greg" and "brown"
Here's my latest attempt: https://gist.github.com/3640532
Maybe I'm not using the path_match on the dynamic template correctly? Also,
I feel like the '"index" : "not_analyzed"' on the meta_raw object mapping
should get inherited by sub-fields, but that doesn't seem to be what
Bonus points for a way to use the multi_field type mapping to make
meta.byline and meta.byline.raw work. I decided to just try and get the
simple solution to work first.
Thanks for the help.