Skip to content

Get query_filter working on input CSV/XML/JSON (split) documents #134

@josvanroosmalen

Description

@josvanroosmalen

It would be useful to get query_filter working on import documents such as XML or CSV splits.

This can be realized by executing reverse queries prior to ingest for filtering out the results.

Example:

const query_filter = '{"jsonPropertyValueQuery": {"property": ["activeCustomer"], "value": ["Y"], "options": ["lang=en"]}}'
const csv_json_doc = xdmp.toJSON({'activeCustomer':"Y"});
cts.contains(
  xdmp.toJSON(xdmp.unquote(query_filter)).root,
  cts.reverseQuery(csv_json_doc)
);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions