Hi Manju, This should not be allowed , I feel it was fixed in later version . I just tested with ML-8 -* its not taking same identical index for an element two times , throwing error stated - " Invalid input: two or more range element indexes are identical. ". So we can raise a ticket to fix it in version 7-* if you feel still you facing the index issue.
Thanks and regards Raja >>> -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rajendran, Manju Sent: Friday, September 04, 2015 3:54 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Element Range Index duplication The indexes are the same, sorry for the typo With Scalar type : UnSignedLong > Namespace URI : HTTP://WWW.some.COM/FILE/COMMON > LOCALNAME : internaltype > Invalid Values : ignore > Range values : FALSE With Scalar type : UnSignedLong > Namespace URI : HTTP://WWW.some.COM/FILE/COMMON > LOCALNAME : internaltype > Invalid Values : ignore > Range values : FALSE Thanks Manju -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rajendran, Manju Sent: Friday, September 04, 2015 6:22 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Element Range Index duplication Hi Everyone, I deleted and recreated the indexes It still allows me to create 100% duplicate indexes, how a database can operate in this fashion, kind of puzzled. > With Scalar type : UnSignedLong > Namespace URI : HTTP://WWW.some.COM/FILE/COMMON > LOCALNAME : internaltype > Invalid Values : ignore > Range values : FALSE It allows me to create another index of the same name > With Scalar type : UnSignedLong > Namespace URI : > HTTP://WWW.some.COM/FILE/COMMON<HTTP://WWW.THANKSDOCTOR.COM/FILE/COMMON> > LOCALNAME : internaltype > Invalid Values : ignore > Range values : FALSE Is this an expected behavior of Marklogic? Please advice. Thanks Manju -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rajendran, Manju Sent: Thursday, September 03, 2015 11:43 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Element Range Index duplication Hi David Yes, That is interesting, It allowed me to create , same 100% identical Element range indexes , however when I tried to create the same index third time It throws the message: "Invalid input: two or more range element indexes are identical" Waiting on the Marklogic Gurus ...to know why it allows the second identical element range index.... Thanks Manju -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of David Sewell Sent: Thursday, September 03, 2015 11:34 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Element Range Index duplication It is certainly possible to create more than one element range index (or attribute range index) on the same element. Ordinarily, you would do this to index an element as two different scalar types (such as "string" and "date"); or to index a string value according to two different collations (useful if you need to do more than one kind of sorting, for example). But creating two 100% identical element range indexes... sounds like MarkLogic should complain about that. Maybe someone at MarkLogic can explain whether the second index is actually created, or just ignored. David On Thu, 3 Sep 2015, Rajendran, Manju wrote: > Hi All > > I find something strange in the version 7.0.2 of Marklogic Suppose I > have the Range index already created > > With Scalar type : UnSignedLong > Namespace URI : HTTP://WWW.some.COM/FILE/COMMON > LOCALNAME : internaltype > Invalid Values : ignore > Range values : FALSE > > It allows me to create another index of the same name > > With Scalar type : UnSignedLong > Namespace URI : > HTTP://WWW.some.COM/FILE/COMMON<HTTP://WWW.THANKSDOCTOR.COM/FILE/COMMON> > LOCALNAME : internaltype > Invalid Values : ignore > Range values : FALSE > > Is this a bug? Please could someone shed some light? > > Thanks > Manju > > > > > > > This e-mail may contain confidential or privileged information. If you > think you have received this e-mail in error, please advise the sender > by reply e-mail and then delete this e-mail immediately. > Thank you. Aetna -- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400318, Charlottesville, VA 22904-4314 USA Email: [email protected] Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/ _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
