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
5
votes
2 answers

How to get node without children in xQuery?

So I have two nodes of elements that I'm essentially trying to join. I want the top level node to stay the same but the child nodes to be replaced by those cross referenced. Given:
mbrevoort
  • 5,075
  • 6
  • 38
  • 48
5
votes
1 answer

MarkLogic triple objects language

I'm in a tricky situation and I can't seem to find any information in the MarkLogic documentation about it. The problem I'm having is that I am using triples from different sources and they are using different ways of describing string objects…
John Smith
  • 1,559
  • 1
  • 12
  • 18
5
votes
2 answers

Marklogic query based on values of multiple attributes of the same element

I have the following xmls: sample1.xml sample2.xml
callow
  • 517
  • 1
  • 4
  • 15
5
votes
5 answers

Dynamic sort (order by), based on variable, in XQuery

I'm trying to implement a dynamic sort in XQuery. I'm currently developing with Saxon-PE 9.5, but will be using the XQuery (or xqueries plural) in eXist and marklogic so any answers using their modules/functions is fine (and hopefully the other db…
Daniel Haley
  • 51,389
  • 6
  • 69
  • 95
5
votes
2 answers

Is there a way to retrieve MarkLogic server version using the Rest API?

We are in the process of creating a monitoring plugin which will make restful calls to MarkLogic to retrieve status information. One of the first things we need to know is which version of MarkLogic we are connnecting to so that we know whether to…
5
votes
3 answers

MarkLogic: binding cts:search expression to a variable

In MarkLogic, is it possible to bind a cts:search expression to a variable and then use that variable elsewhere in the XQuery? I want to do something like this: let $query := cts:search(doc(), cts:and-query(( …
cascavel
  • 191
  • 1
  • 7
5
votes
2 answers

How to sort an path range indexed element?

I have an element DateTimeList with PathRangeIndex for its first child element as follows: /ResultPage/DateTimeList/DateTime[1] Usually we sort an element with attribute as follows:
Sofia
  • 771
  • 1
  • 8
  • 22
5
votes
1 answer

Change XML value in memory with xQuery

I'm trying to change the value of several nodes in a very big XML file loaded in memory from a web form. The file is obtained like this: let $file := xdmp:get-request-field("xml_to_upload") So, as you can see the file is in memory. Now, I need to…
user352353
5
votes
1 answer

Document XPath searching with Marklogic's Java search API vs XQuery/XSLT API

I have the following Marklogic query that, when run in the query console, allows me to retrieve my system user's who have admin privileges: xquery version "1.0-ml"; import schema namespace bfa="http://bitfood.org/auth" at…
Jesús Zazueta
  • 1,160
  • 1
  • 17
  • 32
5
votes
2 answers

Data relationships as a context for search in Marklogic

I using marklogic's search functionality to create a search page. As of right now, I'm running an XQuery to get search results through search:search. As a bare bones example, see this code: xquery version "1.0-ml"; import module namespace…
Paul
  • 449
  • 1
  • 5
  • 13
5
votes
1 answer

MarkLogic Search API - How to do sort-order on same element as searchable-expression

I am attempting to do a search on a specific element so I have a searchable-expression within my options. I also want to sort by the values of this element so I have created an element range index on the value element. Here are my search options…
Francium123
  • 451
  • 5
  • 19
5
votes
3 answers

Escaping curl command in Windows

I'm trying to run a curl command from the command line in Windows, but for the life of me I can't figure out how I'm supposed to escape it. I'm executing this: C:\WINDOWS\system32>curl --anyauth --user user:password -X POST -d…
BlairHippo
  • 9,502
  • 10
  • 54
  • 78
5
votes
2 answers

XML to CSV conversion using XQuery

I have an XML file and I need to convert it into XQuery. consider a simple set of XML: books[book] book[@isbn, title, descrption] eg: Extending Flash MX 2004
Ranjan Sarma
  • 1,565
  • 5
  • 22
  • 36
5
votes
3 answers

How to search in document properties?

I want to search document properties of the documents. I have only documents loaded in Marklogic and no xml files is there. I have turned off content processing. Now I want to search for a metadata (present in xdmp:document-properties(uri)) I have…
Puneet Pant
  • 918
  • 12
  • 37