Hi all,
I suppose this is a sort of feature request, but I'm more interested
in whether it is possible: a) now; b) in a future version; or c)
through a workaround. There are two things I'd like to do -- they are
distinct but related:
Example document for both:
{
"doc": {
"title": "title 1",
"desc": "some words here"
},
"doc": {
"title": "title 2",
"desc": "some more words"
}
}
- Return the entire value of a field as a facet value instead of a
list of terms. ie. for the above, a facet on doc.desc that would
return "some words here", "some more words" instead of "some",
"words", "here", "more" (current terms facet functionality).
I realize it's possible to achieve this by removing keyword
separators, eg. replacing " " with "_" ("some words here" ->
"some_words_here") or similar. But I'm wondering about a better
approach.
- Combine values of facets together into a single return value (like
as is possible with ES scripting). ie. for the above, a terms facet
would return "title", "some", "words", "1", "here", "2", "more".
I realize it's possible to achieve this by combining the results of
two (or more) separate term facets together in the application layer,
but again wondering whether there might be a better way with ES.
I suppose the short version of these questions is: what possibilities
(or intentions) are there for scripting/manipulation of facets beyond
the current statistical and histogram?
Of course, let me reiterate how incredible ES is and how grateful I am
for all the hard work and vision that Shay has put into it. You have
provided a new tool that has quite literally transformed the
possibilities in my field, and made things that were previously
considered impossible for decades almost trivial.
Cheers,
MJ