marklogic

MarkLogic Join Query

心已入冬 提交于 2019-12-04 04:25:40
问题 Hi I am new to marklogic and in Xquery world. I am not able to think of starting point to write the following logic in Marklogic Xquery. I would be thankful if somebody can give me idea/sample so I can achieve the following: I want to Query A.XML based on a word lookup in B.XML. Query should produce C.XML. The logic should be as follows: A.XML <root> <content> The state passed its first ban on using a handheld cellphone while driving in 2004 Nokia Vodafone Nokia Growth Recession Creicket HBO<

How does one install MarkLogic 8 on Ubuntu 14.04?

怎甘沉沦 提交于 2019-12-03 17:35:10
问题 What are the steps to install MarkLogic 8 on Ubuntu 14.04? 回答1: According to Alex Bleasdale/David Ennis, download the CentOS version; then: Ubuntu and other Debian based distributions use DEB packages and CentOS or RedHat use RPM packages. To convert an RPM to DEB in a somewhat reliable way, one can use the 'alien' command. You install and use alien as follows: sudo apt-get install alien sudo alien --to-deb --verbose [your downloaded version] In order to install a local DEB package, you can

How does one install MarkLogic 8 on Ubuntu 14.04?

陌路散爱 提交于 2019-12-03 06:56:48
What are the steps to install MarkLogic 8 on Ubuntu 14.04? s3-4v According to Alex Bleasdale/David Ennis, download the CentOS version; then: Ubuntu and other Debian based distributions use DEB packages and CentOS or RedHat use RPM packages. To convert an RPM to DEB in a somewhat reliable way, one can use the 'alien' command. You install and use alien as follows: sudo apt-get install alien sudo alien --to-deb --verbose [your downloaded version] In order to install a local DEB package, you can use dpkg with the -i option. sudo dpkg -i [your downloaded version new repacked as .deb] At this point,

Forgot my admin username and password in MarkLogic

白昼怎懂夜的黑 提交于 2019-12-02 20:16:06
问题 I have forgotten my username and password of admin in MarkLogic 5. I tried to uninstall the software MarkLogic 5 and install that again. But every time it is asking for username and password when logging into the port 8001 after starting the server. Can you please help me in getting that? 回答1: Getting past the admin password is supposed to be hard (or impossible), of course. You mentioned uninstalling MarkLogic; if you aren't worried about preserving data, you can uninstall MarkLogic and

MarkLogic Facets and Range Indexes

无人久伴 提交于 2019-12-02 16:04:24
问题 I have created an application using the Application Builder in MarkLogic, I need to add some facets in order to display the contents of the file or database, in the search engine. Can someone please help as to how to add range indexes to drive the facets in the Application? Thanks in Advance Swapneel 回答1: To build facets, you need range indexes that the facets can draw on. From http://localhost:8000/appservices , you can use App Services to build the indexes. Near the top of the window,

Forgot my admin username and password in MarkLogic

我只是一个虾纸丫 提交于 2019-12-02 07:37:14
I have forgotten my username and password of admin in MarkLogic 5. I tried to uninstall the software MarkLogic 5 and install that again. But every time it is asking for username and password when logging into the port 8001 after starting the server. Can you please help me in getting that? Getting past the admin password is supposed to be hard (or impossible), of course. You mentioned uninstalling MarkLogic; if you aren't worried about preserving data, you can uninstall MarkLogic and remove the data directory (/var/opt/MarkLogic on Linux), then when you reinstall you'll be prompted to enter a

xquery api to upload data from marklogic to amazon s3

馋奶兔 提交于 2019-12-02 04:36:05
问题 I have a requirement to save files to amazon S3 from my xquery, instead of storing it locally in my marklogic server box (using xdmp:save right now). Is there an xquery api to upload this file to S3 from my xquery? 回答1: If you are running MarkLogic on an EC2 instance, then the solution is there already.. S3 is treated like a native filesystem, so using xdmp:save("S3://bucket/..." bla) works. But you need to fill in your credentials in the admin panel. Docs are here: https://docs.marklogic.com

MARKLOGIC: Is it possible to use more than 1 columns from a CSV file when generating URI ID during data ingestion in MarkLogic?

有些话、适合烂在心里 提交于 2019-12-02 04:35:46
I am quite new to MarkLogic and I am not sure how to best deal with the challenge I have right now. I have a CSV file exported from a table that will be ingested to MarkLogic database. Now the source table uses 4 columns as its unique primary key combination. In MarkLogic, by default, only one column from CSV file can be used as the URI ID. My question is, is it possible to use more than 1 columns from a CSV file as the URI ID during data ingestion in MarkLogic? If yes, is this feature or setting available in data hub? If it is not possible, what is usually the best practice for this in

With Logstash, how do you combine lines based on matching same timestamp on every line?

帅比萌擦擦* 提交于 2019-12-02 01:55:46
MarkLogic log files denote mulitple lines by printing the lines with the same timestamp down to the millisecond. You can see that in this snippet: 2014-05-09 18:47:33.844 Info: Dev_Xdbc: [/file-store/get-file.xqy] url=/2.16.840.1.113883.3.21/d3c787ef-2244-48e4-a8a9-82ae5e7ad47a-296 tenant=perform001 2014-05-09 18:47:34.101 Notice: Dev_Xdbc: XDMP-MODNOTFOUND: (err:XQST0059) Module /2.6.0/utils/no-fn.xqy not found 2014-05-09 18:47:34.101 Notice: Dev_Xdbc: [1.0-ml] So here the two lines starting with 2014-05-09 18:47:34.101 are part of the same log message. I'm not sure how to tell Logstash that

Unable to create MarkLogic scheduled tasks from within CPF action module

旧街凉风 提交于 2019-12-02 01:45:26
问题 I have a MarkLogic database with Content Processing Framework (CPF) installed and the CPF pipeline is such that: Whenever a document is inserted then it grabs the value of execution-date from the document and schedule a task for that time. Example: Sample document: <sample> <execution-date>2014-10-20T12:29:10</execution-date> </sample> when inserted triggers the CPF action module which reads the value of execution-date field and creates a scheduled task to be executed on the time read from