I am new to marklogic and I started my exploration using Corona APi. I have stored some documents using store API. Now I want to perform faceting on an array of words. I have indexed a json document which looks like
…
“aothor”:”name”,
“published_date”:”20-10-2011″,
“nouns”:[“n1″,”n2”],
….
I am able to do faceting on author field after making it a range index field. I am not sure how I can get count of all words in this “nouns” field.
Please suggest how can I do faceting on this or any other way to get a frequency of these words.
Currently there is no native support for faceting on array objects. They are planning to include this in next Marklogic release.
The workaround solution is suggest here https://github.com/marklogic/Corona/issues/86