I am using Query Options to return facets on Full Name. Below is the snippet.
"constraint": [
{
"name": "Full Name",
"range":
{
"type": "xs:string",
"element": {"name": "Full Name" }
}
}
]
I am able to return the facets as expected.
"facets": {
"Full Name": {
"type": "xs:string",
"facetValues": [
{
"name": "John H",
"count": 1,
"value": "John H"
},
{
"name": "Jim White",
"count": 1,
"value": "Jim White"
}
]
}
}
However, I have an additional properties, like email address, phone number etc, also to be returned. Can I return additional properties also under the "facets" property, without having to create range indexes? I see that all properties are returned under results.extracted.content property, but I am trying to return all the required properties together as shown below.
"facets": {
"Full Name": {
"type": "xs:string",
"facetValues": [
{
"name": "John H",
"count": 1,
"value": "John H"
"email": "[email protected]",
"phone": "123456789"
},
{
"name": "Jim White",
"count": 1,
"value": "Jim White"
"email": "[email protected]",
"phone": "123456789"
}
]
}
}