You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
In the current corona implementation array is not a range supported data type https://github.com/marklogic/Corona/wiki/Supported-Range-Datatypes
I have a JSON document with structure like ... "aothor":"name", "published_date":"20-10-2011", "nouns":["n1","n2"], ....
Here I want to do faceting on "nouns" field which has array data type.
The text was updated successfully, but these errors were encountered:
You are correct, at this time there is no support for adding a range index on a JSON array. However, I anticipate that the next major version of MarkLogic server will make supporting this rather trivial. In the meantime there are a couple options:
I could change the datamodel that's backing the JSON documents to support this (pretty painful for me)
You could use the support for XML strings inside JSON documents as a stopgap solution. Here's how I'd do that if I were you:
I'd create another key, "nouns::xml". Inside this key I'ld put a quoted string of XML that contains a element for every item in the array. So it would look something like:
In the current corona implementation array is not a range supported data type https://github.com/marklogic/Corona/wiki/Supported-Range-Datatypes
I have a JSON document with structure like ... "aothor":"name", "published_date":"20-10-2011", "nouns":["n1","n2"], ....
Here I want to do faceting on "nouns" field which has array data type.
The text was updated successfully, but these errors were encountered: