Questions tagged [marklogic]

MarkLogic Server is a multi-model database. Classified as a NoSQL database, MarkLogic stores, manages, and provides built-in search for JSON and XML documents and semantic data (RDF triples). Users can also create relational views on top of the document model—all with a unified, consistent back-end.

MarkLogic Server is a multi-model database. Classified as a NoSQL database, MarkLogic stores, manages, and provides built-in search for JSON and XML documents and semantic data (RDF triples). Users can also create relational views on top of the document model—all with a unified, consistent back-end. MarkLogic’s key features include ingesting data as is from any data source, indexing it immediately for real-time querying, providing data consistency with ACID transactions, maintaining government-grade security, and scaling out with a clustered architecture. MarkLogic has a standard REST API, Node.js and Java Client APIs, and a number of other extensions and open source tools.

MarkLogic supports server-side JavaScript, XQuery and SPARQL, and has a number of extensions that enable:

• HTTP request/response

• Built-in full-text search

• Database operations, including ACID transactions

• High Availability and Disaster Recovery

• Scalability and elasticity

• Tiered Storage

• Advanced, enterprise-grade security

• Semantics

• Additional MarkLogic-specific functionality

You can learn more at the MarkLogic Developer Site, which provides documentation, downloads, tutorials, and more.

You can also register for free instructor-led and online training provided by MarkLogic University.


###Related tags :

3809 questions
4
votes
1 answer

MarkLogic 8 - Stream large result set to a file - JavaScript - Node.js Client API

Let's say I have a query that is going to return a very large response. Possibly thousands of records and possibly gigabytes of data. Normally in the UI, we just show a single page of this data. Now I need an option to take the entire result set and…
Tutan Ramen
  • 1,234
  • 1
  • 8
  • 27
4
votes
1 answer

Marklogic API to get the reindex status of databases

Hi please help me in getting the reindex status of databases using marklogic API. Right now we are using some thing like this: let $forest-reports := let $forest-reports := for $forest-id in xdmp:database-forests($db-id)…
4
votes
1 answer

How do I find the creation date of a document in MarkLogic?

How do I find the creation date of a document in MarkLogic? I was hoping to find something like xdmp:document-creation-date().
4
votes
1 answer

How can I write code that works with the JSON API differences in MarkLogic 7 and 8?

MarkLogic 8 improves JSON support in many ways, but some of the MarkLogic 7 JSON functions now have different signatures or do different things. How can I write XQuery code that works with both releases?
mblakele
  • 7,782
  • 27
  • 45
4
votes
1 answer

How to authenticate a user via Spring Security and MarkLogic's Java Client API?

What is best practice to validate if a user can be authenticated against a MarkLogic server (version 7.0.4) by using the Java Client API (2.0.4) for a login dialog securing a Spring web application? With my current approach (see source code in…
ngeek
  • 7,733
  • 11
  • 36
  • 42
4
votes
2 answers

Loading data with mlcp - namespace issue

I'm trying to load rss data from Wordpress into MarkLogic database. The data is in the form of following:
Seong
  • 41
  • 3
4
votes
2 answers

Count documents in a database directory

Say I have 50 records in directory /example in a MarkLogic database. Is there any way to find size of directory? In this case it should give me 50. I need it in search API. Thanks in advance
Y.Prithvi
  • 1,221
  • 3
  • 14
  • 27
4
votes
2 answers

What is the best way to delete more than 100,000 files?

I am struggling to delete large number of files loaded in a MarkLogic database. The number of files in a directory that I want to delete is more than 100,000. I usually use two following ways to delete files in query console. Each and every file in…
Gowtham
  • 395
  • 4
  • 13
4
votes
1 answer

MarkLogic - How can you do a collection-delete using Java API?

How can you do a collection-delete using Java API? I'm using a JSONDocumentManager for my CRUD operations. Is there a way to do something like: xdmp:collection-delete("myCollection")
kdm06
  • 189
  • 9
4
votes
2 answers

How to fetch all documents that match a URI pattern in Marklogic

I am starting to learn the java api for marklogic, What is want to know is how can i get all the documents that conform to a particular URI pattern. For e.g. i want to get all the documents from the ML db where URI pattern is…
Ambuj Jauhari
  • 1,187
  • 4
  • 26
  • 46
4
votes
2 answers

Loading .owl files in marklogic

Is it possible to load .owl files using mlcp? I tried with -input_file_type rdf but it gives error as below: bin/mlcp.sh import -host localhost -port 9010 -username uname -password pwd -mode local -input_file_path /home/user/semantics/data…
Manisha
  • 41
  • 1
4
votes
2 answers

Does every document loaded in Marklogic have document properties?

Today I got a strange output from the MarkLogic query console. The ML query console returned an empty query sequence when I tried to get document properties of a document that already exists in the MarkLogic Database. This returned a document: …
Gowtham
  • 395
  • 4
  • 13
4
votes
1 answer

How to trigger CPF action module explicitly

I have a document in initial state (http://marklogic.com/states/initial ) and I have configure my CPF pipeline as: ready http://marklogic.com/states/ready
Rahul
  • 403
  • 3
  • 9
4
votes
3 answers

How to list all the URI of all documents in a directory in marklogic

Hi how can i retrieve the URI of all the documents in directory. I create the below xquery to achieve that but that doesn't helps. for $i in xdmp:directory("/Test/performance/results/","infinity") let $k := document-uri(fn:doc($i)) return…
Ambuj Jauhari
  • 1,187
  • 4
  • 26
  • 46
4
votes
1 answer

MarkLogic: using cts:search to find elements without text

I want to find all documents that don't have any text within a certain element - this works but is very slow: let $not-empty := for $i in cts:search(//foo[@class="bar"][text()[not(. = '')]] , cts:and-query(()) …
cascavel
  • 191
  • 1
  • 7