Thanks - BTW I looked up the XML schema spec again and it seems int is in fact a 32-bit int, not 16 as I thought.

-Mike

Danny Sokolsky wrote:
Hi Mike,

Yes, it is the xml type xs:int.  If you define such a range index on an
element (or attribute), the rule is that you need to be able to cast the
value to an xs:int, otherwise it will throw an exception when you try to
load it (or it will log an error when you reindex).  The same for other
types.

I am not sure what the actual ranges for an int are off the top of my
head.

-Danny

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Sokolov
Sent: Thursday, June 19, 2008 1:45 PM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] int vs integer

When creating range indexes, you have a choice of int vs. long (among other types). Am I correct in thinking that "int" maps to xs:int (which

is specified as -32768 to 32767)? Or is it really machine "int" (32 or 64)? What happens if an id (say) is outside that range? Does it generate an error?

-Mike
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to