Configure MarkLogic
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
- After completing the installation, you need to open Services and start the MarkLogic Service.
- Once the service is started, you can navigate to the following URL and
http://localhost:8001/ |
- 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.
- 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.
- 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 theDelivery
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 |
- 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.
- 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.
- 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.
- 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.
- Open the Windows Explorer and create a new root directory under the
C:\MarkLogic
directory. You may want to useC:\MarkLogic\XQuery
as the root directory, which you configure in the next step.
- 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 |
- After changing the five settings, you click the OK button.You should see the following configure screen.
- 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) |
- When you’ve made all changes, click the OK button. You should see the following WebDAV dialog box.
- 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.
- 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.
- Click the Choose a custom network location option, and then click the Next button in the following screen shot.
- 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.
- 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.
- If it looks like the following, click the OK button when you’ve done those three things.
- 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
.
- When you have the following network location value of
local-delivery
, click the Next button.
- 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.
- You confirm the network mapping by opening Windows Explorer. You should see the
Local Disk (C:)
followed bylocal-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.
[…] Configuration of a Forest, HTTP Server, and WebDAV […]
MarkLogic Install & Config
3 Dec 10 at 12:41 am
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
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
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
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