If I understand, you want to use the year from timestamp and lastname from
the name field to form a facet value such as "Yang 2013"? If yes, you
would need to do this using a script. Probably native java script so you
can use some regex patterns to extract the data you want.
Thanks,
Matt Weber
On Sat, Jun 8, 2013 at 3:18 PM, Zhoutuo Yang zhoutuoy@gmail.com wrote:
Hi all,
I know ES term facet supports multiple fields and a field with a regular
expression. But does it support the combination of those?
If so, a curl example would be appreciated, thank you.For example, the format of documents is { timestamp: "yyyy.mm.dd", name:
"firstname.lastname" }
I want to do term facet on year and first name, If I can use regular
expression to extract year and firstname from both fields.
This is just a simple example if you do not understand my question. Plz do
not suggest to divide fields to smaller ones. That's not my question.
Thank you--
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.
--
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.