A field is any [non-analyzed] field in your document. The facet will
place all the values into buckets and return the relevant results. In
the example on the page you linked to, documents such as the following
The document contains two fields: title and tags. The latter is
multi-valued (facets work on non-multivalued terms as well, just
pointing out the notation). The facet then is used on the tags field.
On Fri, May 4, 2012 at 2:43 AM, Yang email@example.com wrote:
I'm playing ES, but here I meet a problem with facet: I don't know what
value should I pass to field scope of Facet.
The page above just give a little info about scope, and also, I tried value
"index", "type" and "document", but they don't work, no facet value return.
Could anybody show me some reference?
That would be very helpful~~