Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
501 views
in Technique[技术] by (71.8m points)

marklogic - How to troubleshoot XDMP-RANGEINDEX error?

We are running reindex on one of our database which is 400 GB approx. and we are seeing below debug log entries :-

2021-01-24 16:13:55.705 Debug: IndexerEnv::putRangeIndex: XDMP-RANGEINDEX: Range index error: double "": XDMP-LEXVAL: Invalid lexical value ""
2021-01-24 16:13:55.715 Debug: IndexerEnv::putRangeIndex: XDMP-RANGEINDEX: Range index error: double "": XDMP-LEXVAL: Invalid lexical value ""

It looks like one of the index is not having proper scalar type set or element in document is having invalid values? How can we troubleshoot this issue ? Any suggestions

question from:https://stackoverflow.com/questions/65881529/how-to-troubleshoot-xdmp-rangeindex-error

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

What version of MarkLogic are you running? A quick test with MarkLogic 10.0-5 show a uri in the error message:

2021-01-25 09:36:01.636 Debug: IndexerEnv::putRangeIndex: XDMP-RANGEINDEX: Range index error: int fn:doc("/test/doc1.xml")/root/foo: XDMP-LEXVAL: Invalid lexical value "bar"

Without that, you will need to check which range indexes of type double you have in place, and try if XPath can show you which documents are troublesome. Something like:

subsequence(collection()[//path/to/double = ''], 1, 10) ! xdmp:node-uri(.)

Don't grab them all this way, but grabbing first 10 should be doable. Might give you an idea where to look.

HTH!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...