Skip to content

Commit c705e4e

Browse files
committed
fix #13, default connections in examples to 8000, document that we no longer need to create a REST server before running the examples
1 parent f5c1b30 commit c705e4e

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

src/main/resources/Example.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ example.writer_password=x
66
example.admin_user=rest-admin
77
example.admin_password=x
88
example.host=localhost
9-
example.port=8012
9+
example.port=8000
1010
example.authentication_type=digest

src/main/resources/example/README.txt

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MarkLogic Java API Examples
2-
October 2013
2+
October 2014
33

44
== Cookbook =============
55

@@ -8,16 +8,9 @@ for common tasks using the MarkLogic Java API.
88

99
Before using the examples, perform the following actions:
1010

11-
1. Install MarkLogic 7 for your chosen platform.
11+
1. Install MarkLogic 8 for your chosen platform.
1212

13-
2. Set up a new REST API instance for your database. You can use Information
14-
Studio at:
15-
16-
http://YOUR_HOST:8000/appservices/
17-
18-
to create a new RESTful Server for a database.
19-
20-
3. Edit Example.properties to specify the connection parameters for the
13+
2. Edit Example.properties to specify the connection parameters for the
2114
REST API instance.
2215

2316
You must identify users for the rest-writer and rest-admin roles. To
@@ -27,9 +20,7 @@ REST API instance.
2720

2821
If you make the user name the same as the role name and set the
2922
password to "x" you will not need to modify those values in the
30-
properties file. Change the example.port property to
31-
the port number of the REST Server you created in step 2 of these
32-
instructions.
23+
properties file.
3324

3425
The examples illustrate the following common tasks:
3526

@@ -44,7 +35,6 @@ The examples illustrate the following common tasks:
4435
* DocumentFormats work with binary, JSON, text, and XML documents
4536
* DocumentOutputStream supply content while writing to the database
4637
* JAXBDocument write and read a POJO using JAXB
47-
* KeyValueSearch search for documents based on values
4838
* QueryOptions configure search with saved options
4939
* StringSearch search with string criteria and saved options
5040
* StructuredSearch search with a criteria structure and saved

0 commit comments

Comments
 (0)