Facets and facet value pair


(vineeth mohan) #1

Hi ,

I have a datastructure like ,

{
Content: "this is from company XYZ doing something towards end",
tags:[ {"company":xyz}, {"source":"homeo"},{"place":"america"}]
}

Now i want to search based on Content field and provide me with facet list.
The facet list should be like ["company":2 , "place" : 3] (Value pair
should not be searched , instead only key should be considered as facets.

Is this possible directly

i know if i spilt the datastructure to
{
Content: "this is from company XYZ doing something towards end",
tags:[ {"company","source","place"],
"company":xyz,
"source":"homeo",
"place":"america"
}

I can clearly do a faceted search on tags array and get the result i want.
But then is there any way i can do the same with the first mentioned
structure.

Thanks
Vineeth


(system) #2