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?
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
are created:
{
"title": "One",
"tags": [
"foo"
]
}
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.
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?
I got your point, and I'm trying it, it seems work now.
Again, thanks~~
--
Yang
On Friday, May 4, 2012 11:17:41 PM UTC+8, Ivan Brusic wrote:
Hi Yang,
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
are created:
{
"title": "One",
"tags": [
"foo"
]
}
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.
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.