Questions tagged [marklogic-8]

8th Version of MarkLogic - An Enterprise NoSQL Database. Indicates a question specific to MarkLogic 8; use with the MarkLogic tag, but not instead of.

MarkLogic is the trusted enterprise NoSQL platform for Big Data applications to drive revenue, streamline operations, manage risk, and make the world safer. Marklogic 8 provided Native JSON storage, NodeJS Client API, JAVA Client API, Server Side Java Script etc.

Apply to questions that are specific to MarkLogic 8. This tag should be used in addition to the MarkLogic tag, which has many more followers. (If you have other other tags and have to choose between this one and MarkLogic, use the MarkLogic tag instead.)

564 questions
3
votes
1 answer

Computed Buckets with cts:field-values

Is there a way to pass the computed-buckets for cts:field-values ? I have a field range index created.. and I cannot use search:search as I build my cts:query dynamically.. I want to calculate for my cts:query the frequency of buckets... this is…
Ravi
  • 1,179
  • 6
  • 13
3
votes
1 answer

extract-document-data in search options erroring

I attempted to follow the example in the search developers guide for configuring record elements to be extracted in the search results.
TJ Tang
  • 921
  • 6
  • 17
3
votes
1 answer

Updating JSON in XQuery and Marklogic 8

I've got a simple enough JSON document stored in Marklogic: { "title": "mytitle", "edition": "1" } Is there a way I can add a new field using Xquery functions so my document and object end up looking is this? { "title": "mytitle", "edition": "1",…
Avbasot
  • 363
  • 1
  • 3
  • 15
3
votes
1 answer

wildcard searches on specific elements only

I am looking for a way to do wildcard search only on specific elements when executing a search:search. Specifically, I might have documents that look like the following:
TJ Tang
  • 921
  • 6
  • 17
3
votes
2 answers

performance of element-value-query vs element-range-query

I have an element range index configured for an element in my database. I am trying to run a search query on that element. The element contains string values and i need to search for one particular string value (not a range of values or date).…
Selva
  • 237
  • 1
  • 7
3
votes
1 answer

last() in spawned functions

Why would the fn:last() function not work while spawning? This failed: xquery version "1.0-ml"; let $items := (1, 2, 3) return xdmp:spawn-function(function () { $items[3 to fn:last()] }) After some time I cancel the job because it does…
chriskelly
  • 7,526
  • 3
  • 32
  • 50
3
votes
1 answer

how to evaluate variables in xslt messages when run on MarkLogic

I have a xslt that is evaluated in Marklogic (via xdmp:xslt-invoke). I am trying to evaluate a variable inside a xsl:message tag, however, when Marklogic encounters the message, it doesn't evaluate the variable, but simply displays the text inside…
SalH
  • 91
  • 5
3
votes
1 answer

New index progress indication

When indexing on a cluster, the database status page in the admin consoles starts failing. I'm indexing a timestamp on indexing priority 2 in a billion documents and this may take a week or two. What is the best way to get an idea about the indexing…
Thijs
  • 1,423
  • 15
  • 38
3
votes
1 answer

Sort cts:search results by cts:score without using expicit loop

I want to get results of cts:search data sorted on the basis of cts:score. I am using following code - ( if ($direction = "descending") then for $result in cts:search (...) order by cts:score($result)…
Ankit Bhardwaj
  • 754
  • 8
  • 27
3
votes
2 answers

MarkLogic Reindexing Issue

I am changing the index configurations on replica cluster in a database, but re-indexing is not getting triggered automatically whereas I have set the "reindexer enable" to "true". Any thoughts around this?
3
votes
2 answers

what happens if i don't specify the collection name in Corb

I have a corb script to run node replace on the xml files. If I don't specify the collection, will it remove the documents from the existing collections?
Selva
  • 237
  • 1
  • 7
3
votes
1 answer

Recommendations roxy settings for MarkLogic 8 with dev, prod or local environment variables?

By default, there is three environment variables that can be run with ruby roxy configuration of a MarkLogic (the roxy script is here: https://github.com/marklogic/roxy). The three variables are: local, dev and prod. Although, others environment…
Jordan Stewart
  • 3,187
  • 3
  • 25
  • 37
3
votes
1 answer

declareUpdate causing delay

To clean up my database, I run a script that deletes some documents. This script needs the declareUpdate() statement to be able to delete documents. But this causes extreme calculation times. For example: the following never finishes with…
Thijs
  • 1,423
  • 15
  • 38
3
votes
2 answers

MarkLogic 8 - XQuery using Document manage and checkout

I have tried the below mentioned xquery. If document is not managed I want to manage the document using a DLS query otherwise I want to checkout the document. xquery version "1.0-ml"; import module namespace dls = "http://marklogic.com/xdmp/dls" at…
Antony
  • 966
  • 8
  • 19
3
votes
2 answers

How to use dls:document-manage in MLCP bulk operation in MarkLogic?

We tried to do dls:document-manage for our documents stored in Marklogic database. We tried with MLCP bulk operation to load multiple documents from file system and how to simultaneously do the dls:document-manage for all these files.
Antony
  • 966
  • 8
  • 19