Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Create index wizard loses collation.. #199

Closed
grtjn opened this issue Apr 14, 2014 · 2 comments
Closed

Create index wizard loses collation.. #199

grtjn opened this issue Apr 14, 2014 · 2 comments
Assignees
Labels

Comments

@grtjn
Copy link
Contributor

grtjn commented Apr 14, 2014

Found this watching the Managing Indexes tutorial, Dave enters a codepoint collation, but the snippet XML shown, shows an empty collation element, which doesn't look correct either. Easy to reproduce:

MacPro-2463:marklogic_cup-replatform gjosten$ ./ml index
What type of index do you want to build?
1 element range index
2 attribute range index
1
What will the scalar type of the index be [1-18]?
1 int
2 unsignedInt
3 long
4 unsignedLong
5 float
6 double
7 decimal
8 dateTime
9 time
10 date
11 gYearMonth
12 gYear
13 gMonth
14 gDay
15 yearMonthDuration
16 dayTimeDuration
17 string
18 anyURI
17
What is the element's namespace URI?
bla
What is the element's localname?
bla
What is the collation URI (leave blank for the root collation)?
http://marklogic.com/collation/codepoint
Turn on range value positions? [y/N]
n
Add this index to /Users/gjosten/Projects/marklogic_cup-replatform/deploy/ml-config.xml? [y/N]

string
bla
bla

false

Collation should not be empty for string indexes as far as I know, and obviously it should copy the entered collation value.

PS: is the user entered collation value being verified by Roxy?

@grtjn
Copy link
Contributor Author

grtjn commented Apr 15, 2014

Maybe codepoint collation is the default of Roxy, and is that why it is suppressed? If so, looks a bit confusing when specifying it explicitly..

@dmcassel
Copy link
Collaborator

Good catch. Taking a look.

@dmcassel dmcassel self-assigned this Apr 15, 2014
@dmcassel dmcassel added the bug label Apr 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants