I have a lot of data loaded in my database where some of the documents loaded are not JSON files & just binary files. Correct data looks like this: "/foo/bar/1.json" but the incorrect data is in the format of "/foo/bar/*". Is there a mechanism in MarkLogic using JavaScript where I can filter out this junk data and delete them? PS: I'm unable to extract files with mlcp that have a "?" in the URI and maybe when I try to reload this data I get this error. Any way to fix that extract along with this?
How to filter out non-json documents in MarkLogic?
98 Views Asked by Mehul At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in JSON
- Handling both JSON and form values in POST request body with unknown values in Golang
- JSON Body is Not Passing Certain Strings
- Custom rewriter for json
- TypeScript: Type checking while parsing an arbitrary JSON that is typed/
- I dont understand what to do with: System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.IEnumerable`1
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Dynamic Nested Multi-Dimensional Arrays in Rust
- Creating bar chart in FastAPI
- How to encode ttsJson data?
- Trying to get the id of the last element in my json file through an api
- How to give index id to my uploaded json file in FastAPI?
- JQ JSON - Values to Array
- Spring boot JSON parse error: Unexpected character error
- convert csv file with json data inside to a column, rows table in 2nd csv file
- Sigma.JS custom rendering
Related Questions in MARKLOGIC
- Is it possible to create a jsonPropertyScopeQuery in a JavaScript Query Generator Function?
- Automatic schema validation in MarkLogic
- Marklogic versioning
- Gradle throwing error "MANAGE-INVALIDPAYLOAD"
- Marklogic optic query is running very slowly in the Java client, but it is running fast in the query console
- Spelling suggestion query (MarkLogic)
- MarkLogic XDMP-INVZIP: Invalid zip file while trying to import the configuration zip file
- How to configure granular privileges in MarkLogic to permit updates to the configurations of a specific database only, while excluding all others?
- Fail to pass paramater from sjs to xquery in DHF 6.0.0
- Can marklogic preserve the original XML document content intention and line break?
- MarkLogic: Understanding Schemas, Triggers, and Modules (with Examples)
- MarkLogic - search.suggest does not return any values
- Field value query and filed range query, result not matching
- How to get list of user with specific roles in MarkLogic
- How to use mlcp export for RDF and specifically Turtle files?
Related Questions in MLCP
- Unknown content type: json How to load JSON document as XML in MarkLogic 8
- Bulk loading files into MarkLogic using MLCP fails
- MLCP Import java.lang.UnsatisfiedLinkError
- how to set multiple permission in MLCP -option_permissions
- Marklogic mlcp and optic query
- XDMP-FORESTNOT: Forest data-hub-STAGING-1 not available: middle closing
- how to add a context name which we give in schema while importing data from a csv file via mlcp
- Loading .owl files in marklogic
- How can I import xml into MarkLogic with namespaces that are defined in separate files?
- running mlcp through gradle and getting Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
- can anyone help to clear up a command line problem MarkLogic MLCP
- MarkLogic Content Pump (MLCP) Error - Cannot update server-maintained properties of directory URIs
- Can MLCP read input based on a condition
- MLCP export except specific collection
- How to use dls:document-manage in MLCP bulk operation in MarkLogic?
Related Questions in MARKLOGIC-CORB
- How does corb job picks docs in marklogic?
- marklogic corb run is generating one file for each uri
- Find newest document in MarkLogic temporal stack even if deleted
- MarkLogic CoRB Error - com.marklogic.developer.corb.ModuleExecutor main INFO: processing error - exiting with code 2
- MarkLogic Corb SEVERE: received more than 1 results: 1
- CORB is giving error for PRE-BATCH-MODULE
- Tried to run Corb in windows machine
- How do I write multiple output files using CoRB?
- MarkLogic Corb error: Could not find or load main class
- learning about the MarkLogic CoRB processing part 2
- MarkLogic CoRB command
- learning about the MarkLogic CoRB processing
- Marklogic Corb export data as compress
- corb fail to pull any file names have special characters
- How to use pass in new field value to Corb routine to update the document in ML
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If all of the document URIs contain a
?and are in that directory, then you could usects.uriMatch()Alternatively, if you are looking to find the
binary()documents, you can apply theformat-binaryoption to acts.search()with acts.directoryQuery()and then delete them.They are probably being persisted as binary because there is no file extension when the URI ends with a question mark and some querystring parameter values i.e.
1.json?foo=barinstead of1.jsonIt is difficult to diagnose and troubleshoot without seeing what your MLCP job configs are and knowing more about what you are doing to load the data.