ryanjdew / ml-slush-discovery-app

Quick up and running app for exploring MarkLogic data, based off of the marklogic-node slush template
Other
9 stars 7 forks source link

custom search decorator causes extracted data to be quoted #98

Open ryanjdew opened 7 years ago

ryanjdew commented 7 years ago

May be a bug with ML itself, but need to investigate if I can use a javascript decorator as a work around.

ryanjdew commented 7 years ago

Update. Need to read the fine print: Thanks @patrickmcelwee

"Users of the REST API and Java API should use search result transformations to modify search results, rather than result decorators. It is possible to override the builtin REST API result decorator, but it is not recommended. If you use a custom result decorator in a REST or Java API context, it completely replaces the default decorator that adds href, mimetype, and format data to results. Also, any data added by a decorator is returned as serialized XML, even when the client requests results in JSON."