MacLochlainns Weblog

Michael McLaughlin's Technical Blog

Site Admin

Configure MarkLogic

with 5 comments

These are the steps to install and configure the MarkLogic 4.2 Server. I’ve had to opt for reduced size images but you may click on them to see their full content in a readable size and format.

Configuration

  1. After completing the installation, you need to open Services and start the MarkLogic Service.
  2. Once the service is started, you can navigate to the following URL and
http://localhost:8001/
  1. Click the Forests element in the Configure tree, and then the click the Create tab. You’ll see the following screen. Enter Delivery in the forest name field and click the ok button.

  1. After you click the ok button in the prior step, you’ll see the following screen. It contains three new tabs: Configure, Status, and Backup/Restore.

  1. Click the Database element in the Configure tree, and then the click the Create tab. You’ll see the following screen. You would enter Delivery in the database name field, but it won’t exist until after Step #7. You need to skip it here and make any other necessary changes consistent with the table below, and click the ok button. After Step #7, return and complete the Delivery as the database name field.

Parameter Value
database name delivery
security database Security
schema database Schemas
triggers database Delivery
language en
stemmed searches decompounding
word searches true
word positions false
fast phrase searches true
fast reverse searches false
fast case sensitive searches true
fast diacritic sensitive searches true
fast element word searches true
element word positions false
fast element phrase searches true
element value positions false
attribute value positions false
three character searches true
three character word positions true
fast element character searches false
trailing wildcard searches false
trailing wildcard word positions false
fast element trailing wildcard searches false
word lexicons blank
two character searches false
one character searches false
uri lexicon false
collection lexicon true
reindexer enable true
reindexer throttle 5
reindexer timestamp 0
directory creation automatic
maintain last modified true
maintain directory last modified false
inherit permissions true
inherit collections true
inherit quality true
in memory limit 65536
in memory list size 128
in memory tree size 32
in memory range index size 4
in memory reverse index size 4
locking strict
journaling fast
journal size 256
preallocate journals false
preload mapped data true
range index optimize facet-time
position list max size 256
format compatibility automatic
index detection automatic
expunge locks automatic
tf normalization scaled-log

 

  1. After you click the ok button in the prior step, you’ll see the following screen. It contains three new tabs: Configure, Status, Backup/Restore and Load.

  1. Click the Databases element, inside of that list click on the Delivery database element, and then click the Forest element. In the Configure tab, verify that the attached checkbox is enabled for the Delivery database. After this step, you should revisit Step #5 and choose Delivery in the database name field.

  1. Click the Forests element in the Configure tree. In the Summary tab, you should see that you have of that list click on the Delivery database assigned to the Delivery forest, as shown below.

  1. Click the Groups element in the Configure tree. Click the App Servers element. In the right-side panel, click the Create HTTP panel if you’ve created a working directory for your HTTP Server root directory and proceed to Step #10. If you’ve not created a root directory for your HTTP Server, do Step #9 before Step #10.

  1. Open the Windows Explorer and create a new root directory under the C:\MarkLogic directory. You may want to use C:\MarkLogic\XQuery as the root directory, which you configure in the next step.

  1. After working through the Create HTTP tab, click the Create HTTP button. After clicking the Create HTTP tab, you need to change five of the settings. This creates a testing environment on your file system.

Parameter Value
server name local-filesystem
root C:\MarkLogic\XQuery
port 9460
module (file system)
database Delivery

 

After you’ve created the first HTTP server, you need to create another where you can run modules stored in the database against data in the database.

Parameter Value
server name _app_http_database_8003
root /prod/
port 8003
module Modules
database Delivery

 

  1. After changing the five settings, you click the OK button.You should see the following configure screen.

  1. Click the Create WebDAV tab. Enter port 8901 and select the Delivery database from the drop down box, as shown below in the screen shot. You also must check/change several other parameters that are listed in the table below the screen shot. This WebDAV lets you test your code positioned in the file system against the data in the Delivery database.

Parameter Value
server name _app_default_delivery_8901
root /
port 8901
database Delivery
collation http://marklogic.com/collation
authentication digest
default user admin (admin)

 

After you’ve created the first WebDAV server, you need to create another where you can point toward your stored modules. They’re stored in the pre-configured Modules database.

Parameter Value
server name _app_default_modules_8011
root /
port 8011
database Modules
collation http://marklogic.com/collation
authentication digest
default user admin (admin)

 

After you’ve created the first two WebDAV servers, you need to create another where you can point toward your stored schemas. They’re stored in the pre-configured Schema database.

Parameter Value
server name _app_default_schema_8902
root /
port 8902
database Schema
collation http://marklogic.com/collation
authentication digest
default user admin (admin)

 

  1. When you’ve made all changes, click the OK button. You should see the following WebDAV dialog box.

  1. At this point, you need to configure a shared network drive. Open Windows Exporer, and click on the C:\ drive. You should see a screen like the one below in Windows 7. In the options bar, at the top of the window, click the Map network drive option.

  1. As shown below, you should see the first screen of the Add Network Location Wizard. Click the Next button to begin creating the network location.

  1. Click the Choose a custom network location option, and then click the Next button in the following screen shot.

  1. Enter in the Internet or network address: field the URL http://localhost:8901, as shown in the screen shot below. Then, click the Next button.

  1. Enter admin in both the User naem and Password fields, and check the Remember my credentials check box. If you fail to check the check box you’ll have problems working with the mapped network drive because it must authenticate against the MarkLogic WebDAV running on Port 8901.

  1. If it looks like the following, click the OK button when you’ve done those three things.

  1. The next dialog has a default value entered for your new network location. Replace the value in the Type a name for this network location: text box with local-delivery.

  1. When you have the following network location value of local-delivery, click the Next button.

  1. The following is the last screen of the wizard. You confirm that you’ve set the new network location to a value of local-delivery. If your screen looks like the following, click the Finish button.

  1. You confirm the network mapping by opening Windows Explorer. You should see the Local Disk (C:) followed by local-delivery network mapping. It should look like the following screen shot.

You’ve completed the configuration of the MarkLogic Server. When you drag content into the WebDAV network, MarkLogic will index it. You can also query and interact with it through MarkLogic’s CQ web-based interactive client tool or through your own API. Next, you’ll want to configure the CQ client development tool.

Written by maclochlainn

November 26th, 2010 at 9:58 pm

Posted in Uncategorized

5 Responses to 'Configure MarkLogic'

Subscribe to comments with RSS or TrackBack to 'Configure MarkLogic'.

  1. […] Configuration of a Forest, HTTP Server, and WebDAV […]

  2. This gives very good descriptive. I have a doubt about how marklogic does its journaling. Can you explain the concept of journaling in marklogic?

    Boo

    9 Feb 11 at 9:50 am

  3. In step 5, you have ‘maintain directory last modified’ option listed twice with both true and false values.

    brad odasso

    7 Mar 11 at 12:31 pm

  4. Step #5 reads:
    “Enter Delivery in the forest name field”
    it should read:
    “Enter Delivery in the database name field”

    Chris Staber

    9 Mar 11 at 12:05 am

  5. In step #5 Delivery does not exist in the database name field. It is not in the drop down menu until a later step I believe.

    Daren

    16 Mar 11 at 10:21 am

Leave a Reply