Skip to content

Commit

Permalink
#454 Better example in provider project
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Apr 26, 2019
1 parent 5118004 commit 55aa1de
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
}
dependencies {
classpath "gradle.plugin.com.marklogic:ml-gradle:3.13.0"
classpath "gradle.plugin.com.marklogic:ml-gradle:3.14.0"
classpath "gradle.plugin.com.marklogic:ml-data-hub:4.2.2"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"schema-database": "%%SCHEMAS_DATABASE%%",
"range-element-index": [
{
"collation": "",
"collation": "http://marklogic.com/collation/",
"invalid-values": "reject",
"localname": "amount",
"localname": "applicationSpecificId",
"namespace-uri": "",
"range-value-positions": false,
"scalar-type": "double"
"scalar-type": "string"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This example shows how a bundle provider can contribute a range index to an application-specific database. The token
"%%DATABASE%%" is used, which will be populated by ml-gradle by the main content database name (on a Data Hub project,
this will be the name of the final database). The file could reference any property though - e.g. a provider may wish
to require a property such as "acmeDatabaseName", and the client of the provider would need to set that property e.g.
in gradle.properties so that it's correctly replaced at deployment time.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"database-name": "%%DATABASE%%",
"range-element-index": [
{
"collation": "http://marklogic.com/collation/",
"collation": "",
"invalid-values": "reject",
"localname": "providerId",
"localname": "amount",
"namespace-uri": "",
"range-value-positions": false,
"scalar-type": "string"
"scalar-type": "double"
}
]
}

0 comments on commit 55aa1de

Please sign in to comment.