xfaqtor

This FAQ is powered by MarkLogic Server.

Submit a new question

General

What is MarkLogic Server?
The MarkLogic Server is an enterprise-class database built specifically for content. It is fully transactional, runs in a distributed environment, and scales to terabytes of content.

Content Interaction Server is based on a powerful blend of search engine architecture and database approaches, using XML as a lingua franca for content storage. Like a search engine, it does not impose any structural constraints on the loaded documents. Content Interaction Server is schema independent and all loaded documents can be immediately queried with high performance without normalizing the data in advance. Like a relational database, Content Interaction Server provides a query environment with deep functionality and full programmability, using XQuery as its query language to build rich, content-centric applications.

Submit a new answer

What is XQuery?
XQuery is the programming language for MarkLogic Server. It's a query language under development by the World Wide Web Consortium (W3C) designed to query data sources which are presented as XML.

Submit a new answer

What is a content database?
A content database is a database tuned for document-oriented content. Using a content database you can treat documents as databases of information without having to "shred" the documents.

Submit a new answer

What is XDBC?
XDBC is a Java API that enables you to write Java applications that communicate with MarkLogic Server.

Submit a new answer

What is xfaqtor?
xfaqtor is a FAQ management program build on MarkLogic Server. It's designed to demonstrate practical XQuery code.

Submit a new answer

Return to top

Code

What does FLWOR mean?
FLWOR is an acronym that stands for for, let, where, order by and return. These are the keywords that make up the FLWOR expression at the heart of the XQuery language.

Submit a new answer

How do I load a document?
There are two API's available for loading a document into the database. Using their simplest signatures,
xdmp:load("file.xml")
allows you to specify an XML document to be loaded into the database, and
xdmp:document-insert("file.xml",<root>...</root>)
allows you to specify a URI and corresponding root node. Please see the documentation for each which can be found in the MarkLogic Server Built-in Functions available under the "how-to" tab on the developer site.

Submit a new answer

How do I delete a document?

xdmp:document-delete("example.xml")
Please see the documentation which can be found in the MarkLogic Server Built-in Functions available under the "how-to" tab on the developer site.

Submit a new answer

How do I view a list of all documents in the content database?
You can use the following xquery:
for $i in input() return document-uri($i)

Submit a new answer

Return to top

Support

Where do I ask support questions?
Community and trial license support questions should be posted to the Mark Logic developer network mailing list. Please visit the "discussion" tab for more details about the mailing list. Standard and Enterprise edition licensees receive dedicated support contacts.

Submit a new answer

After receiving a License Key and clicking OK, the ageeement screen does not display. An error message Not valid for John Doe on somehost.somedomain.com

I've tried uninstalling the software, deleting the directory and reinstalling it again but it still doesn't work.

This usually means that your system has more than one CPU or the host name does not match the name provided during registration.

Your host name, as detected by our software, can change if your machine moves from one network to another (very common with laptops). As of October 2004, our licensing mechanism no longer enforces the original hostname. If you are experiencing this problem you can request a new license to remove this restriction.

Some Intel processors (such as the Xeon) have a feature known as hyper-threading which makes each CPU look like two. Unfortunately, our software can't tell the difference (that's the point of the hardware design). If you experience this problem, contact support@marklogic.com for a workaround.

Submit a new answer

Return to top

XFaqtor

What is xfaqtor?
xfaqtor is an automated Frequently Asked Questions (FAQ) management tool written in XQuery against the MarkLogic Server. It has support for keyword-based search, user-submitted questions and answers, state management of questions and answers (submitted, live, dead), and a separate admin console for managing states. Consisting of about 1,000 lines of XQuery code, it's a useful sample application for learning how to program in XQuery -- while at the same time being robust enough to drive the FAQ at http://developer.marklogic.com/xfaqtor.

Submit a new answer

Is the source for xfaqtor available?
Yes. It's available under the "workshop" tab.

Submit a new answer

Are xfaqtor searches case-sensitive?
Yes and no. MarkLogic Server lets you perform case-sensitive or case-insensitive queries. In xfaqtor, if you do a search for "mark" it's case insensitive. If you search for "Mark" or "MARK" then it's case sensitive. The logic is, if you took the time to capitalize something we assume you want case to matter.

Submit a new answer

Return to top

Content Interaction Server

Will calling collection("foo")[N] or collection("foo")[N1-N2] yield the same results if it is called multiple times?
Yes, provided no documents are inserted into or
deleted from the collection in the interim.

Submit a new answer

Return to top