Bryan and Geert,
Thank you for your info. I have resumed my efforts trying to get local disk
failover to work now since the holiday is over, but I still am having
difficulty. If anyone can shed any light I'd sure appreciate it.
1. I have created a failover for Security DB as Bryan sugge
Hi Will,
The scores are used for the truncate=N and other options that use a cts:query.
In those cases, the score will be used to find the top n fragments to
limit|skip|sample|truncate.
If you want relevance order, I believe you have to do a cts:search.
-Danny
From: general-boun...@developer
I have a fact fragment created in the database every time an article is
viewed, for example:
12345
read
userIdHere
dateTimeHere
I am wanting to display a distinct list of the most recent viewed
documents. I found the documentation for cts:values has options for
scoring so I got re
Rob,
Good point about the vars preventing optimization, I didn’t look too closely at
the actual expression being evaluated.
Doing an eval/value on an expression is not necessarily bad though, the Search
API has always done that too to allow dynamic sorting.
Also don’t be mistaken: the xdmp:val
Well, there are some caveats to that. For example, $set would need to be either
a cts:search expression or fully searchable XPath expression. You won't get the
optimization at all if it is referenced via a variable.
https://docs.marklogic.com/guide/performance/order_by#id_59622 ("The search or
Doing an if inside the order by (good suggestion by the way) would be most
useful if you can eliminate the need for xdmp:value entirely. Doing xdmp:value
inside the order by sounds worse to me than doing it for the entire flwor
statement. If you do it for the entire flwor statement, static analy
Hi Siva,
I can’t help with the Eclipse IDE integration. Not even sure how well it works
with latest MarkLogic. I do know that oXygen Enterprise edition provides
excellent integration with MarkLogic.
Regarding displaying error messages:
You could put a try catch inside your spawn-function, and
Couple of thoughts:
1) You're not sharing your full code ($outputs and $aliases are not defined,
for instance) . Any chance the error is in something not shown?
2) Have you checked the query you're passing into xdmp:value() to make sure
there isn't an error in that?
Looking at your code I see
Hi Pragya,
It surprises me that this doesn’t error on Windows. The line that you marked
ends with ||, but from the looks of it, there is no following string operand
that I would expect. Try removing it..
Cheers,
Geert
From:
mailto:general-boun...@developer.marklogic.com>>
on behalf of "Kapoo
Dear Team,
Is there any way to display error message in query console during
spawn-function running and also kindly guide me how to debug the marklogic
using eclipse ide.
Thanks & Regards,
Siva
___
General mailing list
General@developer.marklogic.co
Hi,
Below code is working fine on windows server, but on linux server its giving
the error.
XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Vbar_
let $sort as xs:string := string-join(
for $output in $outputs
let $sortOrder := $output//sort/text()
return
(if($sortOrde
11 matches
Mail list logo