[MarkLogic Dev General] full stack trace

2017-11-21 Thread Oleksii Segeda
Hello, Is there a way to turn off stack trace trimming? By default it puts ellipsis after certain number of characters, which is a pain for debugging. http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] MLCP heap error

2017-11-16 Thread Oleksii Segeda
Gary, Try to set -Xmx in addition to -Xms Best, Oleksii From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gary Larsen Sent: Thursday, November 16, 2017 4:55 PM To: 'General MarkLogic Developer Discussion'

Re: [MarkLogic Dev General] xray tests

2017-09-01 Thread Oleksii Segeda
logic.com<mailto:general-boun...@developer.marklogic.com>> on behalf of Oleksii Segeda <oseg...@worldbankgroup.org<mailto:oseg...@worldbankgroup.org>> Reply-To: MarkLogic Developer Discussion <general@developer.marklogic.com<mailto:general@developer.marklogic.com>&g

[MarkLogic Dev General] xray tests

2017-08-31 Thread Oleksii Segeda
to go through all of them manually. I've tried to increase swap, limit the number of debug threads, limit cache sizes, etc. - nothing helps. What else can be done here? Regards, Oleksii Segeda IT Analyst Information and Technology Solutions [http://siteresources.worldbank.org/NEWS/Images

Re: [MarkLogic Dev General] Count of cts:element-values() not equal to number of element instances--what's going on?

2017-08-14 Thread Oleksii Segeda
Eliot, You can do something like this: cts:element-value-co-occurrences(xs:QName("prof:overall-elapsed"),xs:QName("xdmp:document")) if you have only one element per document. Best, Oleksii Segeda IT Analyst Information and Technology Solutions www.worldbank.org -

[MarkLogic Dev General] fitness score

2017-08-03 Thread Oleksii Segeda
... )), ("score-logtf","unfiltered") ) ) I want to do the same thing, but for an element, without ingesting this element to my database. Any ideas? Oleksii Segeda IT Analyst Information and Technology Solutions [http://siteresources.worldbank.org/NEWS/Image

Re: [MarkLogic Dev General] special character using fn:replace and regex

2017-08-03 Thread Oleksii Segeda
You can use regex: let $input := "$10,000 value $6,000 , Not able to find other" return fn:replace($input, "(\$[0-9]+),([0-9]+)", "$1$2") => $1 value $6000 , Not able to find other Oleksii Segeda IT Analyst Information and Technology Solutions [http:/

Re: [MarkLogic Dev General] indexes

2017-07-11 Thread Oleksii Segeda
To reclaim the space used by the range index. On 11/07/2017 14:11, Oleksii Segeda wrote: Hi, Question to ML engineers here. Can someone explain why deletion of a range index causes reindexing? Thanks. Oleksii Segeda IT Analyst Information and Technology Solutions T +12024736

[MarkLogic Dev General] indexes

2017-07-11 Thread Oleksii Segeda
Hi, Question to ML engineers here. Can someone explain why deletion of a range index causes reindexing? Thanks. Oleksii Segeda IT Analyst Information and Technology Solutions T +12024736798 E oseg...@worldbankgroup.org<mailto:oseg...@worldbankgroup.org> W www.worldbank.or

Re: [MarkLogic Dev General] cts:element-value-match for integers

2017-06-19 Thread Oleksii Segeda
72 www.marklogic.com <http://www.marklogic.com/> On 6/19/17, 12:59 PM, "general-boun...@developer.marklogic.com on behalf of Oleksii Segeda" <general-boun...@developer.marklogic.com on behalf of oseg...@worldbankgroup.org> wrote: >Hi everyone, > >Any thoughts on this? &

Re: [MarkLogic Dev General] cts:element-value-match for integers

2017-06-19 Thread Oleksii Segeda
Hi everyone, Any thoughts on this? Oleksii. -Original Message- From: Oleksii Segeda Sent: Friday, June 16, 2017 6:16 PM To: general@developer.marklogic.com Subject: cts:element-value-match for integers Hi everyone, Can someone explain how does cts:element-value-match work

[MarkLogic Dev General] cts:element-value-match for integers

2017-06-16 Thread Oleksii Segeda
index, but I want to know if a better solution exists. Thanks. Oleksii Segeda IT Analyst Information and Technology Solutions www.worldbank.org ___ General mailing list General@developer.marklogic.com Manage your subscription at: http

Re: [MarkLogic Dev General] Priorities for queries

2017-05-26 Thread Oleksii Segeda
Hi Gary, I want to prioritize it because the application can use up to 90% of maximum storage IOPS and it’s normal (we have continuous ingestion with a lot of writes/full document lookups). Unfortunately, SSD is not an option at this time. Regards, Oleksii From:

Re: [MarkLogic Dev General] Priorities for queries

2017-05-24 Thread Oleksii Segeda
Gary, Please correct me if I’m wrong, but this will only parallelize queries without addressing priorities. This means if one of them creates a lot of disk IO, the second one hangs. Best, Oleksii From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com]

Re: [MarkLogic Dev General] Priorities for queries

2017-05-23 Thread Oleksii Segeda
eral-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>> on behalf of Oleksii Segeda <oseg...@worldbankgroup.org<mailto:oseg...@worldbankgroup.org>> Reply-To: MarkLogic Developer Discussion <general@developer.marklogic.com<mailto:general@developer.marklogic.c

[MarkLogic Dev General] Priorities for queries

2017-05-22 Thread Oleksii Segeda
. In other words, scripts are tolerant of high latency, but users are not. Regards, Oleksii Segeda IT Analyst Information and Technology Solutions W www.worldbank.org<http://www.worldbank.org/> [http://siteresources.worldbank.org/NEWS/Images/spacer.png] [http://siteresources.worldbank

[MarkLogic Dev General] xdmp:parse-dateTime

2017-04-11 Thread Oleksii Segeda
Hi everyone, The docs says that xdmp:parse-dateTime will not return the correct dateTime value for dates before October 15, 1582. What should I use for dates before October 15, 1582? Regards, Oleksii Segeda IT Analyst Information and Technology Solutions [http://siteresources.worldbank.org

Re: [MarkLogic Dev General] Regular Expressions

2017-03-22 Thread Oleksii Segeda
Hi Erik, Unfortunately, all my codebase is in XQuery, but I need to use word-boundaries and non-matching groups. So far the only idea that comes to my mind is to use xdmp:javascript-eval. I'm curious if this approach is considered as a normal practice. Best, Oleksii Segeda IT Analyst

[MarkLogic Dev General] Regular Expressions

2017-03-22 Thread Oleksii Segeda
for fn.analyzeString("foo bar bar", "\\b(bar)\\b") ? Regards, Oleksii Segeda IT Analyst Information and Technology Solutions [http://siteresources.worldbank.org/NEWS/Images/spacer.png] [http://siteresources.worldbank.org/NEWS/Images/WBG_Information_and_Tech

[MarkLogic Dev General] transform

2017-02-15 Thread Oleksii Segeda
Hi all, When I'm trying to use transforms with DocumentManager (Java API), MarkLogic gives me this error: XDMP-MULTIPART-DONE: xdmp:document-load("rest::", /original/4ea94612..) -- All parts are already processed Please advise. Regards, Oleksii Segeda IT Analyst I

Re: [MarkLogic Dev General] Custom search grammar

2017-02-01 Thread Oleksii Segeda
Hi Erik, Did you figure out how to extend the grammar? Regards, Oleksii Segeda IT Analyst Information and Technology Solutions -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Oleksii Segeda Sent: Monday

Re: [MarkLogic Dev General] Custom search grammar

2017-01-30 Thread Oleksii Segeda
. I guess a postprocessing can be used as you suggested, however I'm interested in custom search grammar, because I may need to extend it more in the future. Thank you, Oleksii Segeda IT Analyst Information and Technology Solutions -Original Message- From: general-boun

[MarkLogic Dev General] Custom search grammar

2017-01-30 Thread Oleksii Segeda
qtextref { "schema-element(cts:query)" }, $expr1 } } }; Unfortunately this doesn't work, because for some reason impl:symbol-lookup returns an empty sequence. Any ideas what went wrong here? Oleksii Segeda IT Analyst Information and Technolog