And what is the mapping for "dress"? I read the doc and is still not
sure.
How does faceting work with a nested document like this? Say I'm
faceting on "size" and "color",
the above document should contribute the values "S", "M" for the
field "size", and the values "black", "blue" for the field "color"
if a user set a filter on "size" to "S", then the above document
should only contribute the value "black" (but not "blue") for the
field "color"
Is the above true? Or did I misunderstand how nested faceting work?
And what is the mapping for "dress"? I read the doc and is still not
sure.
How does faceting work with a nested document like this? Say I'm
faceting on "size" and "color",
the above document should contribute the values "S", "M" for the
field "size", and the values "black", "blue" for the field "color"
if a user set a filter on "size" to "S", then the above document
should only contribute the value "black" (but not "blue") for the
field "color"
Is the above true? Or did I misunderstand how nested faceting work?
Could you show here example of nested faceting for Item? (assuming that it
is declared as nested)
Is it possible to facet on all fields of Item without directly indicating
it? Smth like
{"facets": {
"item_options":
{
"terms": {"field": "Item"},
"nested": "Item"
}
}
I'm still lurking solution for faceting on dynamic attributes.
понедельник, 12 сентября 2011 г., 21:59:21 UTC+6 пользователь kimchy
написал:
And what is the mapping for "dress"? I read the doc and is still not
sure.
How does faceting work with a nested document like this? Say I'm
faceting on "size" and "color",
the above document should contribute the values "S", "M" for the
field "size", and the values "black", "blue" for the field "color"
if a user set a filter on "size" to "S", then the above document
should only contribute the value "black" (but not "blue") for the
field "color"
Is the above true? Or did I misunderstand how nested faceting work?
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.