marklogic / marklogic/marklogic-contentpump
Get query_filter working on input CSV/XML/JSON (split) documents
Open
Nobody has claimed this yet.
major
mlcp
new
task
- Dominant language
- Java
- Stars
- 37
- Forks
- 32
- Avg merge
- 1h 3m
- Merged PRs (30d)
- 12
Description
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)
);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.