each person contains one name and a list of attributes, and each attribute
contains name and value.
each attribute name e.g 'attributeName1' might have several possible values
'attrbuteName1Value1','attributeName1Value2',attributeName1Value3....
I have a lot of person documents combined with different attribute names
with different possible attribute values
I want to define a facet to query how many person in specific attribute name
e.g. how many persons with attribute name 'attributeName1'
the result would be:
facet = {
person_attributes_attribute_name_1:{
terms:[
{
"term":"attributeName1Value1",
"count":1000
},
{
"term":"attributeName1Value2",
"count":1300
},
{
"term":"attributeName1Value3",
"count":700
}
]
}
}
each person contains one name and a list of attributes, and each attribute
contains name and value.
each attribute name e.g 'attributeName1' might have several possible
values 'attrbuteName1Value1','attributeName1Value2',attributeName1Value3....
I have a lot of person documents combined with different attribute names
with different possible attribute values
I want to define a facet to query how many person in specific attribute
name
e.g. how many persons with attribute name 'attributeName1'
the result would be:
facet = {
person_attributes_attribute_name_1:{
terms:[
{
"term":"attributeName1Value1",
"count":1000
},
{
"term":"attributeName1Value2",
"count":1300
},
{
"term":"attributeName1Value3",
"count":700
}
]
}
}
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.